gpt4 book ai didi

java - 错误: String types not allowed (at 'theme' with value ") in android studio

转载 作者:行者123 更新时间:2023-12-01 10:03:24 26 4
gpt4 key购买 nike

当我运行 android studio 时,我不断收到此错误:

:app:prepareComAndroidSupportAnimatedVectorDrawable2321Library UP-TO-DATE :app:preReleaseBuild UP-TO-DATE :app:checkDebugManifest :app:preDebugBuild UP-TO-DATE :app:preBuild UP-TO-DATE Information:BUILD FAILED :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 UP-TO-DATE :app:compileDebugRenderscript UP-TO-DATE :app:generateDebugBuildConfig UP-TO-DATE :app:generateDebugAssets UP-TO-DATE :app:mergeDebugAssets UP-TO-DATE :app:generateDebugResValues UP-TO-DATE :app:generateDebugResources UP-TO-DATE :app:mergeDebugResources UP-TO-DATE :app:processDebugManifest UP-TO-DATE :app:processDebugResources

C : \Users\User\Desktop\UniTools\app\build\intermediates\exploded- aar\com.android.support\appcompat-v7\23.2.1\res\values\values.xml

Error:(315, 5) String types not allowed (at 'theme' with value ''). Error:Execution failed for task ':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'' finished with non-zero exit value 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 中为我提供这段代码。关于问题出在哪里有什么想法吗?

最佳答案

从资源管理器编辑“values.xml”:找到values.xml->在记事本中编辑->重建项目。

您正在尝试编辑生成的文件,因此parent=""一次又一次出现。因为您无法编辑生成的文件

关于java - 错误: String types not allowed (at 'theme' with value ") in android studio,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36635240/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com