我正在尝试克隆这个GitHub项目: https://github.com/NielsMasdorp/Speculum-Android
当我运行它时,我会遇到几个错误:
Error:(3, -1) android-apt-compiler: [main] C:\Users\Jerry\Desktop\Android Projects\Speculum-Android\app\src\main\res\values\styles.xml:3: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.NoActionBar'.
Error:(7, -1) android-apt-compiler: [main] C:\Users\Jerry\Desktop\Android Projects\Speculum-Android\app\src\main\res\values\styles.xml:7: error: Error: No resource found that matches the given name: attr 'colorAccent'.
Error:(6, -1) android-apt-compiler: [main] C:\Users\Jerry\Desktop\Android Projects\Speculum-Android\app\src\main\res\values\styles.xml:6: error: Error: No resource found that matches the given name: attr 'colorPrimary'.
Error:(10, -1) android-apt-compiler: [main] C:\Users\Jerry\Desktop\Android Projects\Speculum-Android\app\src\main\res\values\styles.xml:10: error: Error retrieving parent for item: No resource found that matches the given name 'TextAppearance.AppCompat'.
所有错误都在styles.xml
中,是否有人可以克隆它并告诉我需要做些什么才能摆脱这些错误?
style.xml:
<style name="AppTheme.Base" parent="Theme.AppCompat.Light.NoActionBar">
<!-- Customize your theme here. -->
<item name="android:textColorSecondary">@color/grey</item>
<item name="colorPrimary">@color/primary</item>
<item name="colorAccent">@color/accent</item>
</style>
<style name="InputLayout" parent="TextAppearance.AppCompat">
<item name="android:textSize">18sp</item>
<item name="android:textColorHint">@color/grey</item>
<item name="colorAccent">@color/grey</item>
<item name="colorControlNormal">@color/grey</item>
<item name="colorControlActivated">@color/primary</item>
<item name="android:textColorHighlight">@color/primary</item>
<item name="android:textColorLink">@color/primary</item>
</style>
新错误:
Error:(83, 25) error: cannot find symbol variable static_maps_api_key
Error:(43, 8) error: dagger.internal.codegen.ComponentProcessor was unable to process this class because not all of its dependencies could be resolved. Check for compilation errors or a circular dependency with generated code.
:app:compileRetrolambdaDebug
Error:Execution failed for task ':app:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.