我试图使用‘react原生运行-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.
我已经尝试过的事情:
在node_modules
compileSdkVersion
和D16到31,在build.gradle上删除和重新安装
<代码>D15
和targetSdkVersion
。“反应-本地人”:"0.64.2“
发布于 2022-11-29 10:08:05
我通过将react-native
更新为0.64.4
,将react-native-reanimated
更新为2.2.2
来解决这个问题。
这些问题帮助了我- #1 RN #2 reanimated
https://stackoverflow.com/questions/74563383
复制相似问题