將舊案從Eclipse匯入到Android studio,點選MainActivity.xml想改畫面卻一直出現底下的訊息
查了下資料,看到這篇android studio 新建一個專案,卻出現Design editor is unavailable until after a successful project sync,看起來點選File -> sync project with Gradle Files,出現Erorr:“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.〞
找半天找到AndroidManifes.xml,查看發現有底下這句
<uses-sdk android:minSdkVersion="7" android:targetSdkVersion="17"/>將它mark掉後,再點選File -> sync project with Gradle Files,就build成功可以使用了
參考網址:
沒有留言:
張貼留言