java - 在 Ubuntu 中构建 APK react native 应用程序的问题

标签 java android react-native gradle apk

<分区>

enter image description here

Configure project :react-native-vector-icons WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'. It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html

error: resource 
android:style/TextAppearance.Material.Widget.Button.Borderless.Colored not found.
error: resource                     
android:style/TextAppearance.Material.Widget.Button.Colored not found.
/home/aras/.gradle/caches/transforms-1/files-1.1/appcompat-v7-27.1.1.aar/37bde114cf44a5a3196253573d3981be/res/values-v26/values-v26.xml:9:5-12:13: AAPT: error: resource android:attr/colorError not found.

/home/aras/.gradle/caches/transforms-1/files-1.1/appcompat-v7-27.1.1.aar/37bde114cf44a5a3196253573d3981be/res/values-v26/values-v26.xml:13:5-16:13: AAPT: error: resource android:attr/colorError not found.

/home/aras/.gradle/caches/transforms-1/files-1.1/appcompat-v7-27.1.1.aar/37bde114cf44a5a3196253573d3981be/res/values-v26/values-v26.xml:17:5-93: AAPT: error: style attribute 'android:attr/keyboardNavigationCluster' not found.

/home/aras/.gradle/caches/transforms-1/files-1.1/appcompat-v7-27.1.1.aar/37bde114cf44a5a3196253573d3981be/res/values/values.xml:251:5-69: AAPT: error: resource android:attr/fontStyle not found.

/home/aras/.gradle/caches/transforms-1/files-1.1/appcompat-v7-27.1.1.aar/37bde114cf44a5a3196253573d3981be/res/values/values.xml:251:5-69: AAPT: error: resource android:attr/font not found.

/home/aras/.gradle/caches/transforms-1/files-1.1/appcompat-v7-27.1.1.aar/37bde114cf44a5a3196253573d3981be/res/values/values.xml:251:5-69: AAPT: error: resource android:attr/fontWeight not found.

error: failed linking references.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-user-agent:verifyReleaseResources'.

com.android.ide.common.process.ProcessException: Failed to execute aapt

* 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 2s
75 actionable tasks: 2 executed, 73 up-to-date

最佳答案

检查所有 npm build.gradle 中是否存在 支持库版本 不匹配的 gradle 依赖性。

关于java - 在 Ubuntu 中构建 APK react native 应用程序的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52458159/

相关文章:

java - IBM Bluemix : Watson Q&A service setup

android - 在 Android 中使用 openGL 绘制动态图形

react-native - 可能未处理的 Promise 拒绝 (id : 0): Error: Permission denied (while saving the image via "CameraRoll.saveToCameraRoll()"))

react-native - 如何更改 react-native-tab-view 的颜色?

java - 图片翻转且无法缩放

java - 如果情况允许使用 HashMap,为什么有人会使用 Array 而不是 HashMap?

java - 现在有什么奇特的方法来支持 java 中的脚本编写?

java - 如何在 Android Studio 中的 datasnapshot/recyclerview 内创建条件?

android - 循环遍历位图像素以更改android中位图的颜色

javascript - 在 React 中突出显示搜索到的文本