gpt4 book ai didi

Java android 修复无法压缩文件

转载 作者:行者123 更新时间:2023-11-30 00:41:26 24 4
gpt4 key购买 nike

当我添加到我的项目时 compile 'com.android.support:design:25.2.0'和同步项目我看到了这个:

Error:Failed to crunch file C:\Users\ElteGps 022\Desktop\smok mobile\SMOKMobile-master-82c8589239c26646d1b81cc71810dbd11f2743f51\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\25.2.0\res\drawable-hdpi-v4\abc_textfield_search_default_mtrl_alpha.9.png into C:\Users\ElteGps 022\Desktop\smok mobile\SMOKMobile-master-82c8589239c26646d1b81cc71810dbd11f2743f51\app\build\intermediates\res\merged\debug\drawable-hdpi-v4\abc_textfield_search_default_mtrl_alpha.9.png

这是我的 build.gradle :

apply plugin: 'com.android.application'

android {
compileSdkVersion 19
buildToolsVersion "24.0.3"

defaultConfig {
applicationId "com.smok.maps"
minSdkVersion 8
targetSdkVersion 19
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}

dependencies {
compile 'com.android.support:design:25.2.0'
compile files('libs/android-support-v4.jar')
compile files('libs/joda-time-2.3.jar')
compile files('libs/ksoap2-android-assembly-3.6.0-jar-with-dependencies.jar')
compile files('libs/osmbonuspack_v4.9.jar')
compile files('libs/osmdroid-android-4.2-javadoc.jar')
compile files('libs/osmdroid-android-4.2.jar')
compile files('libs/slf4j-android-1.5.8.jar')

}

最佳答案

你可以使用

 aaptOptions
{
cruncherEnabled = false
}

仅供引用

调用 buildToolsVersion "25.0.1" 而不是 buildToolsVersion "24.0.3"

  • 编译 'com.android.support:design:25.1.0'
  • 调用 compileSdkVersion 25 而不是 19

然后Clean-Rebuild-Restarts and Sync你的IDE

关于Java android 修复无法压缩文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42502469/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com