Gradle build Error:Cause: org.gradle.api.internal.ExtensibleDynamicObject

后端 未结 3 1577
太阳男子
太阳男子 2021-01-17 11:28

I am trying to import \'https://code.google.com/p/android-serialport-api/\'into Android Studio. Since this project involves ndk, I followed the instructions to build NDK fro

3条回答
  •  无人及你
    2021-01-17 11:55

    Can you try change

    compileSdkVersion 22
    buildToolsVersion "22.0.1"
    

    to

    compileSdkVersion = 22
    buildToolsVersion = "22.0.1"
    

    and

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

    to

    release {
        minifyEnabled = false
        proguardFiles  += file('proguard-rules.txt')
    }
    

    I've got the same error and this works for me.

提交回复
热议问题