android studio關於targetSdk version,minSdk version報錯

從網上導入項目,然後Android studio報錯

The minSdk 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.


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.
 

大致意思是是說:

minSdk版本不應該在android清單文件中聲明。您可以將版本從清單移動到build.gradle文件中的默認Config。

targetSdk版本不應該在android清單文件中聲明。您可以將版本從清單移動到build.gradle文件中的默認Config。

然後移除manifest中的minSdk,targetSdk就可以了!

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