报错:
test/res/values/styles.xml:4: error: Error retrieving parent for item: No resource found
that matches the given name 'Theme.AppCompat.Light.NoActionBar'.
test/res/values/styles.xml:9: error: Error: No resource found that matches the given name:
attr 'colorAccent'.
test/res/values/styles.xml:7: error: Error: No resource found that matches the given name:
attr 'colorPrimary'.
test/res/values/styles.xml:8: error: Error: No resource found that matches the given name:
attr 'colorPrimaryDark'.
解决:
# emacs test/res/values/styles.xml
-<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
+<style name="AppTheme" parent="android:Theme.NoTitleBar">
-<item name="colorPrimary">@color/colorPrimary</item>
-<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
-<item name="colorAccent">@color/colorAccent</item>
</style>