簡體   English   中英

在 react-native run-android 的開發版本上出現錯誤“Task:app:processDebugResources FAILED”

[英]Error "Task :app:processDebugResources FAILED" on dev build of react-native run-android

我正在嘗試使用“react-native run-android”運行我的應用程序,但它在嘗試構建時會提示此錯誤。 resource android:attr/lStar not found

> Task :app:processDebugResources FAILED
227 actionable tasks: 227 executed
Note: /home/leo/.dev/id_motorista/node_modules/@react-native-async-storage/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageModule.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /home/leo/.dev/id_motorista/node_modules/@react-native-async-storage/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStoragePackage.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: /home/leo/.dev/id_motorista/node_modules/react-native-background-fetch/android/src/main/java/com/transistorsoft/rnbackgroundfetch/HeadlessTask.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
   > Android resource linking failed
     /home/leo/.gradle/caches/transforms-2/files-2.1/3e18a838e60dae2918cb4d785933a26e/core-1.7.0/res/values/values.xml:105:5-114:25: AAPT: error: resource android:attr/lStar not found.

我已經嘗試過的事情:

  • 清潔 gradle
  • 清理反應緩存
  • 清理地鐵緩存
  • 清理紗線緩存
  • 刪除並重新安裝 node_modules
  • 將build.gradle上的compileSdkVersiontargetSdkVersion改為31

“本機反應”:“0.64.2”

我通過將react-native更新為0.64.4並將react-native-reanimated reanimated 更新為2.2.2來解決它。

這些問題幫助了我 - #1 RN #2 復活

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM