1. 程式人生 > >《個人紀錄》Android開發碰到的問題彙總

《個人紀錄》Android開發碰到的問題彙總

僅為方便自己查閱!!!

1、出現的問題:

Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
It will be removed at the end of 2018

解決方法:把build.gradle(Module:app)裡面的裡的compile換成implementation.

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'org.tensorflow:tensorflow-lite:0.0.0-nightly'
}

2、出現的問題:

The targetSdk version should not be declared in the android manifest file. You can move the version from the manifest to the defaultConfig in the build.gradle file.

解決方法:把AndroidManifest.xml檔案裡的有關targetsdk的語句刪除huo'或者註釋掉:

    <!--<uses-sdk android:targetSdkVersion="23" />-->