Rub*_*ers 9 android gradle android-jetpack
所以,我一直在迁移的支持库Jetpack的映射我的依赖关系在告诉这个链接.
我现在在构建我的应用程序时遇到错误,这让我一无所知.我不知道导致此错误的原因导致它看起来像生成的资源.
错误是:
Android resource linking failed
Output: C:\Users\Ruben\Documents\Bowvie\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:8673: error: expected reference but got (raw string) #000000.
error: failed linking references.
Command: C:\Users\Ruben\.gradle\caches\transforms-1\files-1.1\aapt2-3.2.0-alpha14-4748712-windows.jar\90bbfcfb9476bccff8420ad6f86bed60\aapt2-3.2.0-alpha14-4748712-windows\aapt2.exe link -I\
C:\Users\Ruben\AppData\Local\Android\Sdk\platforms\android-P\android.jar\
--manifest\
C:\Users\Ruben\Documents\Bowvie\app\build\intermediates\merged_manifests\debug\processDebugManifest\merged\AndroidManifest.xml\
-o\
C:\Users\Ruben\Documents\Bowvie\app\build\intermediates\processed_res\debug\processDebugResources\out\resources-debug.ap_\
-R\
@C:\Users\Ruben\Documents\Bowvie\app\build\intermediates\incremental\processDebugResources\resources-list-for-resources-debug.ap_.txt\
--auto-add-overlay\
--java\
C:\Users\Ruben\Documents\Bowvie\app\build\generated\not_namespaced_r_class_sources\debug\processDebugResources\r\
--custom-package\
nl.fdyr.movies\
-0\
apk\
--output-text-symbols\
C:\Users\Ruben\Documents\Bowvie\app\build\intermediates\symbols\debug\R.txt\
--no-version-vectors
Daemon: AAPT2 aapt2-3.2.0-alpha14-4748712-windows Daemon #0
Run Code Online (Sandbox Code Playgroud)
错误行(8673)是:
<style name="Widget.Support.CoordinatorLayout" parent="android:Widget">
<item name="statusBarBackground">#000000</item>
</style>
Run Code Online (Sandbox Code Playgroud)
新迁移的依赖项是:
implementation 'com.google.android.material:material:1.0.0-alpha1'
implementation 'androidx.appcompat:appcompat:1.0.0-alpha1'
implementation 'androidx.cardview:cardview:1.0.0-alpha1'
implementation 'androidx.browser:browser:1.0.0-alpha1'
implementation 'androidx.annotation:annotation:1.0.0-alpha1'
implementation 'androidx.constraintlayout:constraintlayout:1.1.0'
implementation 'androidx.core:core-ktx:1.0.0-alpha1'
implementation 'androidx.annotation:annotation:1.0.0-alpha1'
implementation 'androidx.slice:slice-core:1.0.0-alpha1'
implementation 'androidx.slice:slice-builders:1.0.0-alpha1'
Run Code Online (Sandbox Code Playgroud)
小智 16
一吨的实验和搜索之后,好像这个问题可以通过覆盖风格和问题设定值来解决#000000
到@null
.
在你的res/values/styles.xml
你可以添加
<style name="Widget.Support.CoordinatorLayout" parent="android:Widget">
<item name="statusBarBackground">@null</item>
</style>
哪个应该覆盖原始值并修复问题.
归档时间: |
|
查看次数: |
1584 次 |
最近记录: |