深度阅读

"react-native-splash-screen编译出现错误解决方案"

作者
作者
2023年08月22日
更新时间
20.07 分钟
阅读时间
0
阅读量

react-native-splash-screen安装时候出现类似错误

https://github.com/crazycodeboy/react-native-splash-screen

:app:processDebugManifest
:app:processDebugResources
/Users/jiangsong/git/apps/test1/yichangqiusai/android/app/build/intermediates/res/merged/debug/values-v24/values-v24.xml:3: AAPT: Error retrieving parent for item: No resource found that matches the given name ‘android:TextAppearance.Material.Widget.Button.Borderless.Colored’.
/Users/jiangsong/git/apps/test1/yichangqiusai/android/app/build/intermediates/res/merged/debug/values-v24/values-v24.xml:4: AAPT: Error retrieving parent for item: No resource found that matches the given name ‘android:TextAppearance.Material.Widget.Button.Colored’.
/Users/jiangsong/git/apps/test1/yichangqiusai/android/app/build/intermediates/res/merged/debug/values-v26/values-v26.xml:15:21-54: AAPT: Noresource found that matches the given name: attr ‘android:keyboardNavigationCluster’.
/Users/jiangsong/git/apps/test1/yichangqiusai/android/app/build/intermediates/res/merged/debug/values-v24/values-v24.xml:3: error: Error retrieving parent for item: No resource found that matches the given name ‘android:TextAppearance.Material.Widget.Button.Borderless.Colored’.
/Users/jiangsong/git/apps/test1/yichangqiusai/android/app/build/intermediates/res/merged/debug/values-v24/values-v24.xml:4: error: Error retrieving parent for item: No resource found that matches the given name ‘android:TextAppearance.Material.Widget.Button.Colored’.
/Users/jiangsong/git/apps/test1/yichangqiusai/android/app/build/intermediates/res/merged/debug/values-v26/values-v26.xml:15: error: Error: No resource found that matches the given name: attr ‘android:keyboardNavigationCluster’.

卸载react-native-splash-screen

npm uninstall react-native-splash-screen 

安装 3.0.9版本

npm install --save [email protected] 

之后重新编译即可。

另外

package.json文件中

dependencies{
“react-native-splash-screen”: “3.0.9”,
}

去掉“^”,防止自动升级。

相关标签

博客作者

热爱技术,乐于分享,持续学习。专注于Web开发、系统架构设计和人工智能领域。