【发布时间】:2016-08-06 17:22:12
【问题描述】:
当我运行 android studio 时,我不断收到这个错误:
:app:prepareComAndroidSupportAnimatedVectorDrawable2321Library UP-TO-DATE :app:preReleaseBuild UP-TO-DATE :app:checkDebugManifest :app:preDebugBuild UP-TO-DATE :app:preBuild UP-TO-DATE 信息:构建失败 :app:prepareComAndroidSupportDesign2321Library UP-TO-DATE :app:prepareComAndroidSupportAppcompatV72321Library :app:prepareComAndroidSupportSupportV42321Library UP-TO-DATE :app:prepareComAndroidSupportRecyclerviewV72321Library UP-TO-DATE :app:prepareComAndroidSupportSupportVectorDrawable2321Library UP-TO-DATE :app:prepareDebugDependencies :app:compileDebugAidl 最新 :app:compileDebugRenderscript 最新 :app:generateDebugBuildConfig 最新 :app:generateDebugAssets 最新 :app:mergeDebugAssets 最新 :app:generateDebugResValues 最新 :app:generateDebugResources 最新 :app:mergeDebugResources 最新 :app:processDebugManifest 最新 :app:processDebugResources
C : \Users\User\Desktop\UniTools\app\build\intermediates\exploded- aar\com.android.support\appcompat-v7\23.2.1\res\values\values.xml
错误:(315, 5) 不允许使用字符串类型(在 'theme' 处,值为 '')。 错误:任务“:app:processDebugResources”执行失败。 com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Users\User\AppData\Local\Android\sdk\build-tools\23.0.2\aapt.exe'' 以非零退出值 1 结束
<style name="Base.TextAppearance.AppCompat.SearchResult" parent="">
<item name="android:textStyle">normal</item>
<item name="android:textColor">?android:textColorPrimary</item>
<item name="android:textColorHint">?android:textColorHint</item>
</style>
然后 Android Studio 在 values.xml 中给我这个代码。关于问题是什么的任何想法?
【问题讨论】:
-
你为什么有
parent=""? -
是这个问题吗?我从未编辑过 values.xml。
-
如果我把它拿出来运行它会自动返回
-
不要让父母="
-
移除父属性