- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
我在安装“react-native-get-sms-android”后构建 React Native 时遇到问题,您可以在这里找到 https://www.npmjs.com/package/react-native-get-sms-android ,我不知道为什么,我试图寻找类似的错误,但都失败了。
这是完整的错误:
> Task :app:processReleaseGoogleServices
Parsing json file: D:\Project\React Native\myProject\android\app\google-services.json
error: resource android:style/TextAppearance.Material.Widget.Button.Borderless.Colored not found.
error: resource android:style/TextAppearance.Material.Widget.Button.Colored not found.
C:\Users\frank\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\226ef6010c3c969192062affc53f6ce6\res\values-v26\values-v26.xml:9:5-12:13: AAPT: error: resource android:attr/colorError not found.
C:\Users\frank\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\226ef6010c3c969192062affc53f6ce6\res\values-v26\values-v26.xml:13:5-16:13: AAPT: error: resource android:attr/colorError not found.
C:\Users\frank\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\226ef6010c3c969192062affc53f6ce6\res\values-v26\values-v26.xml:17:5-93: AAPT: error: style attribute 'android:attr/keyboardNavigationCluster' not found.
C:\Users\frank\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\226ef6010c3c969192062affc53f6ce6\res\values\values.xml:251:5-69: AAPT: error: resource android:attr/fontStyle not found.
C:\Users\frank\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\226ef6010c3c969192062affc53f6ce6\res\values\values.xml:251:5-69: AAPT: error: resource android:attr/font not found.
C:\Users\frank\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\226ef6010c3c969192062affc53f6ce6\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-get-sms-android: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 3m 54s
203 actionable tasks: 4 executed, 199 up-to-date
请任何人帮助我解决这个问题。
谢谢。
最佳答案
错误原因:
你已经安装了 react-native-get-sms-android 作为依赖项,这个错误的原因是你的 android/app/build.gradle
的配置和 node_modules/react-native-get-sms-android/android/build.gradle
不匹配。
解决方案
node_modules/react-native-get-sms-android/android/build.gradle
compileSdkVersion
buildToolsVersion
minSdkVersion
targetSdkVersion
与您在 android/app/build.gradle
中的相同./gradlew assembleRelease
从终端。 关于android - 任务 ':react-native-get-sms-android:verifyReleaseResources' 的 React Native 构建错误执行失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53370968/
我正在尝试将应用程序升级到React Native 0.57.1。我认为我已经按照所有步骤操作,升级了所有正确的文件,但是仍然出现我无法理解的错误: :react-native-document-
我正在开发 Flutter 应用程序。我可以在 Android 设备中成功运行应用程序,但尝试创建构建 (.apk) 文件并遇到以下问题。 FAILURE: Build failed with an
我想用这个命令发布我的 apk: sudo ./gradlew assembleRelease -x bundleReleaseJsAndAssets 但我收到此错误消息: FAILURE: Buil
我正在尝试构建我的 flutter 应用程序的发布变体,但我收到了这个 gradle 错误。请帮忙 FAILURE: Build failed with an exception. * What we
我正在尝试使用 React Native 生成未签名的 apk,但它不会生成,而且我遇到了一些错误。我确实检查了堆栈跟踪,但我无法弄清楚出了什么问题。有没有和我一样的问题?我已经被困在这里好几天了
我有一个第三方依赖项 (react-native-admob),它在其 build.gradle 文件中指定了以下内容:com.google.android.gms:play-services-ads
在构建 React Native 应用程序时出现以下错误。* 什么地方出了错:任务 ':react-native-youtube:verifyReleaseResources' 执行失败。 com.a
我使用 react-native-smart-splash-screen 并完全安装(在文档中完成所有任务)。 及其在 android 模拟器中的工作。 我安装 gradle-4-10-2 并在我项目
大家。我在构建 apk 作为 flutter 中的发布方法时遇到一些问题。我真的不知道为什么会出现错误。这是指https://github.com/rxlabz/speech_recognition/
在 React-Native Android Emulator 中,它可以完美运行。但是,当我运行以下命令时: cd android && ./gradlew assembleRelease 我收到这
嘿,我在构建我的应用程序时遇到了一个问题。 只有当我尝试将 apk 构建为发行版时才会出现错误我可以调试它并且我可以将应用程序构建为调试我尝试将 compileSDKVersion 更改为 28 并将
我在安装“react-native-get-sms-android”后构建 React Native 时遇到问题,您可以在这里找到 https://www.npmjs.com/package/reac
我是一名优秀的程序员,十分优秀!