更新Android SDK 23後出現Process Exception
最近在其中一部電腦的Android Studio更新Android SDK 23後,開啟某專案準備修改程式時爆出Error。
當中顯示:
Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inverse'.
Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Button.Colored'.
Error:Execution failed for task ':app:processDebugResources'. > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:UsersMeAppDataLocalAndroidsdkbuild-tools23.0.2aapt.exe'' finished with non-zero exit value 1
解決辦法是直接在Gradle file 把compileSdkVersion 改成 23。