Android 无法解决渐变错误
那是我的身材。格雷德尔:Android 无法解决渐变错误,android,android-gradle-plugin,build.gradle,Android,Android Gradle Plugin,Build.gradle,那是我的身材。格雷德尔: apply plugin: 'com.android.application' android { compileSdkVersion 23 buildToolsVersion "23.0.2" defaultConfig { applicationId "com.example.mabna.hearthurt" minSdkVersion 14 targetSdkVersion 23
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
defaultConfig {
applicationId "com.example.mabna.hearthurt"
minSdkVersion 14
targetSdkVersion 23
versionCode 1
versionName "1.0"
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
lintOptions {
abortOnError false
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.1.0'
compile 'com.android.support:support-v4:23.1.0'
// compile 'com.github.traex.rippleeffect:library:+'
// compile 'com.balysv:material-ripple:1.0.2'
compile 'com.squareup.picasso:picasso:2.5.0'
}
但出现了以下错误:
无法解析错误(32,13):com.squareup.picasso:picasso:2.5.1
也适用于:
编译'com.github.traex.rippleeffect:library:+'
编译'com.balysv:material ripple:1.0.2'
和其他外部依赖项发生错误。
我已经编译了com.github.traex.rippleeffect:library:+和com.squareup.picasso:picasso:2.5.1以及其他依赖项的示例,没有任何错误。
那么问题是什么呢首先从Gradle中删除
+
调用
Do
compile 'com.github.traex.rippleeffect:library:1.3'
compile 'com.android.support:appcompat-v7:23.1.0' // Instead yours
编辑
调用multiDexEnabled true
defaultConfig {
// Enabling multidex support.
multiDexEnabled true
}
然后在项目中执行清理重建同步
Dependencies是一个虚拟文件夹,IDE在其中显示JAR文件
项目取决于
@索利文:我想这是包装缺陷。每当您创建一个新项目时,就会忽略此错误。首先从Gradle中删除
+
调用
Do
compile 'com.github.traex.rippleeffect:library:1.3'
compile 'com.android.support:appcompat-v7:23.1.0' // Instead yours
编辑
调用multiDexEnabled true
defaultConfig {
// Enabling multidex support.
multiDexEnabled true
}
然后在项目中执行清理重建同步
Dependencies是一个虚拟文件夹,IDE在其中显示JAR文件
项目取决于
@索利文:我想这是包装缺陷。每当你创建一个新项目时,就会忽略这个bug。调用stable
compile'com.squareup.picasso:picasso:2.5.0'
&compile'com.android.support:appcompat-v7:23.1.0'
你解决了这个问题吗?我是说同样的情况#Solivan?@IntelliJ Amiya这很奇怪!!!我是这样解决的:我在另一个路径中创建了一个新的测试项目,然后在其中插入了行code
compile'com.squareup.picasso:picasso:2.5.0'code
,并将其同步。然后同步我的主要项目和毕加索的错误清理!!!但是code
编译'com.github.traex.rippleeffect:library:1.3'code
的错误仍然存在,因此此行的错误保持不变,此行的错误也被清除!我不知道为什么,但这奏效了!你知道我的项目设置有什么问题吗?看看我编辑过的答案。打电话给stablecompile'com.squareup.picasso:picasso:2.5.0'
&compile'com.android.support:appcompat-v7:23.1.0'
你解决了这个问题吗?我是说同样的情况#Solivan?@IntelliJ Amiya这很奇怪!!!我是这样解决的:我在另一个路径中创建了一个新的测试项目,然后在其中插入了行code
compile'com.squareup.picasso:picasso:2.5.0'code
,并将其同步。然后同步我的主要项目和毕加索的错误清理!!!但是code
编译'com.github.traex.rippleeffect:library:1.3'code
的错误仍然存在,因此此行的错误保持不变,此行的错误也被清除!我不知道为什么,但这奏效了!你知道我的项目设置有什么问题吗?请看我编辑的答案。希望这对你有帮助。好的。谢谢你的帮助。但为什么包装错误的指控,我如何才能修复它在我的主要项目没有作出任何新的项目?希望这有助于你。好的。谢谢你的帮助。但为什么包装错误指责,我如何能修复它在我的主要项目没有作出任何新的项目?