从GitHub上下载的代码家的NumberProgressBar,导入adt之后报错如下:
error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
xml文件内容如下:
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
</style>
</resources>
这个问题该如何解决?
高洛峰2017-04-17 12:03:28
android-support-v7-appcompat
This dependency is not found. It is best to delete its original v7 first, and then re-import your own v7 package as a dependency. In one sentence, make sure that the v7 library path referenced by your project is correct. Method: right-click The project you introduced->property-> (left side) Android
I guess the package in your left frame should be red, select remove and then re-Add to import your v7 package;
You can also try checking the copy into workpace
option
伊谢尔伦2017-04-17 12:03:28
If you use android studio.
Just do this in gradle.
dependencies {
compile 'com.daimajia.numberprogressbar:library:1.2@aar'
}
No need to configure anything.