迁移到Android Studio但有错误

时间:2015-12-28 14:16:04

标签: android eclipse migration

我的Android Studio存在问题。听说在不久的将来谷歌将终止对Eclipse的支持我决定迁移到Android Studio,在我完成之后,我导入了Eclipse的项目,我得到了我不理解的错误:

Extract()

这是我的Build.gradle

Error:(3) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inverse'.
Error:(18) 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 'D:\Android-sdk\build-tools\23.0.2\aapt.exe'' finished with non-zero exit value 1

1 个答案:

答案 0 :(得分:2)

这是因为你使用buildTools 23.0.2构建,但是compileSdkVersion是22. compileSdkVersion应该是23,而你的targetSdkVersion应该是23。