android Invoke-customs are only supported awith Android O (--min-api 26

android {
    compileSdkVersion 25
    defaultConfig {
        applicationId "com.lidao.eshop.fasteshop"
        minSdkVersion 24
        targetSdkVersion 25
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    compileOptions {

        sourceCompatibility JavaVersion.VERSION_1_8

        targetCompatibility JavaVersion.VERSION_1_8

    }

compileOptions {

sourceCompatibility JavaVersion.VERSION_1_8

    targetCompatibility JavaVersion.VERSION_1_8

}

加上以上代碼,可以解決

 

然後又出現問題:Program type already present: android.support.v4.app.INotificationSideChanne

compileSdkVersion 
targetSdkVersion  從28 降低到 25

新錯誤:error: resource android:attr/fontVariationSettings not found.

將插件版本都降低

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章