Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resource android:attr/xxx not found #30

Open
yafengHe opened this issue Sep 27, 2019 · 0 comments
Open

resource android:attr/xxx not found #30

yafengHe opened this issue Sep 27, 2019 · 0 comments

Comments

@yafengHe
Copy link

拉的是最新的代码,项目启动报错。
以下是报错信息:

  • What went wrong:
    Execution failed for task ':app:processDebugResources'.

Android resource linking failed
Output: /Users/apple/Desktop/self_code/RN/Mozi/android/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values-v28/values-v28.xml:7: error: resource android:attr/dialogCornerRadius not found.
/Users/apple/Desktop/self_code/RN/Mozi/android/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values-v28/values-v28.xml:11: error: resource android:attr/dialogCornerRadius not found.
/Users/apple/Desktop/self_code/RN/Mozi/android/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:830: error: resource android:attr/fontVariationSettings not found.
/Users/apple/Desktop/self_code/RN/Mozi/android/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:831: error: resource android:attr/ttcIndex not found.
error: failed linking references.

Command: /Users/apple/.gradle/caches/transforms-1/files-1.1/aapt2-3.2.1-4818971-osx.jar/5bf1b2ff400c29cdc2f47b460c0c0567/aapt2-3.2.1-4818971-osx/aapt2 link -I
/Users/apple/Library/Android/sdk/platforms/android-27/android.jar
--manifest
/Users/apple/Desktop/self_code/RN/Mozi/android/app/build/intermediates/merged_manifests/debug/processDebugManifest/merged/AndroidManifest.xml
-o
/Users/apple/Desktop/self_code/RN/Mozi/android/app/build/intermediates/processed_res/debug/processDebugResources/out/resources-debug.ap_
-R
@/Users/apple/Desktop/self_code/RN/Mozi/android/app/build/intermediates/incremental/processDebugResources/resources-list-for-resources-debug.ap_.txt
--auto-add-overlay
--java
/Users/apple/Desktop/self_code/RN/Mozi/android/app/build/generated/not_namespaced_r_class_sources/debug/processDebugResources/r
--custom-package
com.mozi
-0
apk
--output-text-symbols
/Users/apple/Desktop/self_code/RN/Mozi/android/app/build/intermediates/symbols/debug/R.txt
--no-version-vectors
Daemon: AAPT2 aapt2-3.2.1-4818971-osx Daemon #0
Output: /Users/apple/Desktop/self_code/RN/Mozi/android/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values-v28/values-v28.xml:7: error: resource android:attr/dialogCornerRadius not found.
/Users/apple/Desktop/self_code/RN/Mozi/android/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values-v28/values-v28.xml:11: error: resource android:attr/dialogCornerRadius not found.
/Users/apple/.gradle/caches/transforms-1/files-1.1/appcompat-1.0.0-rc01.aar/13f68db763672360cd3278ac27df5ca8/res/values/values.xml: AAPT: error: resource android:attr/fontVariationSettings not found.

/Users/apple/.gradle/caches/transforms-1/files-1.1/appcompat-1.0.0-rc01.aar/13f68db763672360cd3278ac27df5ca8/res/values/values.xml: AAPT: error: resource android:attr/ttcIndex not found.

error: failed linking references.
Command: /Users/apple/.gradle/caches/transforms-1/files-1.1/aapt2-3.2.1-4818971-osx.jar/5bf1b2ff400c29cdc2f47b460c0c0567/aapt2-3.2.1-4818971-osx/aapt2 link -I
/Users/apple/Library/Android/sdk/platforms/android-27/android.jar
--manifest
/Users/apple/Desktop/self_code/RN/Mozi/android/app/build/intermediates/merged_manifests/debug/processDebugManifest/merged/AndroidManifest.xml
-o
/Users/apple/Desktop/self_code/RN/Mozi/android/app/build/intermediates/processed_res/debug/processDebugResources/out/resources-debug.ap_
-R
@/Users/apple/Desktop/self_code/RN/Mozi/android/app/build/intermediates/incremental/processDebugResources/resources-list-for-resources-debug.ap_.txt
--auto-add-overlay
--java
/Users/apple/Desktop/self_code/RN/Mozi/android/app/build/generated/not_namespaced_r_class_sources/debug/processDebugResources/r
--custom-package
com.mozi
-0
apk
--output-text-symbols
/Users/apple/Desktop/self_code/RN/Mozi/android/app/build/intermediates/symbols/debug/R.txt
--no-version-vectors
Daemon: AAPT2 aapt2-3.2.1-4818971-osx Daemon #0

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant