卡片幻灯片库找不到符号变量/类android studio
在将项目导入android studio时,它显示了一个错误,即它没有从库中找到某些项目,这可能是什么问题? 我正在等待答复,请让我知道如果你找到任何可能的解决办法,这个问题,我将非常感谢你卡片幻灯片库找不到符号变量/类android studio,android,Android,在将项目导入android studio时,它显示了一个错误,即它没有从库中找到某些项目,这可能是什么问题? 我正在等待答复,请让我知道如果你找到任何可能的解决办法,这个问题,我将非常感谢你 Error:(25, 31) error: package android.support.v4.util does not exist Error:(26, 31) error: package android.support.v4.view does not exist Error:(27, 31) e
Error:(25, 31) error: package android.support.v4.util does not exist
Error:(26, 31) error: package android.support.v4.view does not exist
Error:(27, 31) error: package android.support.v4.view does not exist
Error:(2189, 17) error: cannot find symbol class SparseArrayCompat
Error:(692, 48) error: cannot find symbol variable MotionEventCompat
Error:(821, 28) error: cannot find symbol variable MotionEventCompat
Error:(858, 27) error: cannot find symbol variable MotionEventCompat
Error:(865, 29) error: cannot find symbol variable MotionEventCompat
Error:(976, 17) error: cannot find symbol variable MotionEventCompat
Error:(977, 17) error: cannot find symbol variable MotionEventCompat
Error:(1976, 9) error: cannot find symbol variable ViewCompat
Error:(2361, 52) error: cannot find symbol variable ViewCompat
Error:(2371, 52) error: cannot find symbol class SparseArrayCompat
Error:(2415, 60) error: cannot find symbol variable ViewCompat
Error:(2425, 60) error: cannot find symbol class SparseArrayCompat
Error:(2464, 26) error: cannot find symbol variable ViewCompat
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
:main:compileReleaseJavaWithJavac FAILED
Error:Execution failed for task ':main:compileReleaseJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
由于您使用的是Android Studio,我假设您使用的是Gradle。确保gradle构建脚本(build.gradle)中有适当的依赖项。例如,当它说“错误:包android.support.v4.util不存在”时,您可能缺少support v4库。你需要一些类似的东西:
**This my build.gradle code**
apply plugin: 'com.android.application'
android {
//compileSdkVersion 'Google Inc.:Google APIs:23'
compileSdkVersion 23
buildToolsVersion "23.0.2"
defaultConfig {
applicationId ""
minSdkVersion 16
targetSdkVersion 23
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
dependencies {
compile project(':main')
compile project(':circularImageView')
compile project(':com_facebook_android')
compile project(':main')
compile 'com.android.support:support-v4:23.3.0'
compile 'com.google.android.gms:play-services:+'
compile files('libs/commons-codec-1.9.jar')
compile files('libs/picasso-2.5.2.jar')
compile files('libs/signpost-commonshttp4-1.2.1.1.jar')
compile files('libs/signpost-core-1.2.1.1.jar')
compile files('libs/signpost-jetty6-1.2.1.1.jar')
compile files('libs/simple-side-drawer2.jar')
compile files('libs/twitter4j-core-2.2.5.jar')
}
等等…显示你的
构建。gradle
你可以检查我的buld.gradleit已经完成,问题是卡片幻灯片库没有正确集成,我刚刚将项目表单eclipse导入android studio
dependencies {
compile 'com.android.support:support-v4:23.3.0'
}