首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >App:编译compileDebugRenderscript和Gradle同步错误

App:编译compileDebugRenderscript和Gradle同步错误
EN

Stack Overflow用户
提问于 2019-01-31 13:52:28
回答 1查看 362关注 0票数 0

在Android 3.5中,我面临以下错误:

以非零出口值1完成

app:compiledebugrenderscript和执行任务操作错误。

https://ibb.co/ZzbwRL7

https://ibb.co/pwVBQnX

https://ibb.co/4VxJ4ZY

apply plugin: 'com.android.application'

代码语言:javascript
复制
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'
}
EN

回答 1

Stack Overflow用户

发布于 2019-06-24 12:01:47

在依赖项部分中,尝试更改appCompact的版本:

代码语言:javascript
复制
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'
}
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/54462092

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档