Приложение: ошибка compileDebugRenderscript и Gradle Sync - PullRequest
0 голосов
/ 31 января 2019

В Android Studio 3.5 я сталкиваюсь с этими ошибками:

завершено с ненулевым значением выхода 1

и

app:compiledebugrenderscript и выполнить ошибки задания задачи.

https://ibb.co/ZzbwRL7

https://ibb.co/pwVBQnX

https://ibb.co/4VxJ4ZY

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'
}

1 Ответ

0 голосов
/ 24 июня 2019

в разделе зависимостей попробуйте изменить версию 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'
}
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...