任务“:app:processDebugResources”执行失败。运行应用程序时
运行应用程序后,我得到这个>任务:app:processDebugResources 失败
25 个可操作任务:25 个已执行
失败:构建因异常而失败。
- 出了什么问题: 任务“:app:processDebugResources”执行失败。
执行 com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction 时发生故障 Android资源链接失败 错误:C:\Users\Pallavi\React\Redux\android\app\build\intermediates\packaged_manifests\debug\AndroidManifest.xml:14: AAPT: 错误:资源样式/Theme.GFGPagination (又名 com.redux:style/Theme .GFGPagination)未找到。
尝试: 使用 --stacktrace 选项运行以获取堆栈跟踪。使用 --info 或 --debug 选项运行以获得更多日志输出。使用 --scan 运行以获得完整的见解。
- 获取更多帮助
BUILD FAILED in 24s
错误 无法安装应用程序。确保您已设置 Android 开发环境: https://reactnative.dev/docs/environment-setup 。 错误:命令失败:gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
失败:构建失败并出现异常。
- 出了什么问题: 任务“:app:processDebugResources”执行失败。
执行 com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction 时发生故障 Android资源链接失败 错误:C:\Users\Pallavi\React\Redux\android\app\build\intermediates\packaged_manifests\debug\AndroidManifest.xml:14: AAPT: 错误:资源样式/Theme.GFGPagination (又名 com.redux:style/Theme .GFGPagination)未找到。
所以我在 android ie ./gradlew.bat installDebug 中运行命令然后我得到了我提到的错误
After running the app I am getting this > Task :app:processDebugResources FAILED
25 actionable tasks: 25 executed
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.res.LinkApplicationAndroidResourcesTask$TaskAction
Android resource linking failed
ERROR:C:\Users\Pallavi\React\Redux\android\app\build\intermediates\packaged_manifests\debug\AndroidManifest.xml:14: AAPT: error: resource style/Theme.GFGPagination (aka com.redux:style/Theme.GFGPagination) not found.
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
BUILD FAILED in 24s
error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
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.res.LinkApplicationAndroidResourcesTask$TaskAction
Android resource linking failed
ERROR:C:\Users\Pallavi\React\Redux\android\app\build\intermediates\packaged_manifests\debug\AndroidManifest.xml:14: AAPT: error: resource style/Theme.GFGPagination (aka com.redux:style/Theme.GFGPagination) not found.
So I run the command in android i.e ./gradlew.bat installDebug then I got that error that I have mention in question
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论