在Android Studio 3.5上,我遇到以下错误:
以非零退出值1结束
和
app:compiledebugrenderscript
并执行任务操作错误。
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
buildToolsVersion '28.0.3'
compileOptions.encoding = 'ISO-8859-1'
defaultConfig {
applicationId "......"
minSdkVersion 23
targetSdkVersion 28
multiDexEnabled = true
versionCode 7
versionName "7"
renderscriptTargetApi 28
//renderscriptSupportModeEnabled true // don't use support library as it bloats the APK, and we don't need pre-4.4 support
//need build tools higher than 20 at least to support ScriptIntrinsicHistogram
testApplicationId "......"
testInstrumentationRunner "android.test.InstrumentationTestRunner"
}
dexOptions {
jumboMode = true
preDexLibraries = false
javaMaxHeapSize "4g"
}
compileOptions {
sourceCompatibility '1.7'
targetCompatibility '1.7'
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
lintOptions {
checkReleaseBuilds false
}
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
//noinspection GradleCompatible
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.google.android.gms:play-services:12.0.1'
implementation 'com.android.support:multidex:1.0.3'
}
答案 0 :(得分:0)
在“依赖项”部分中,尝试更改appCompact的版本:
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
//noinspection GradleCompatible
implementation 'com.android.support:appcompat-v7:23.2.1'
implementation 'com.google.android.gms:play-services:12.0.1'
implementation 'com.android.support:multidex:1.0.3'
}