- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试为 React native 应用程序构建发布 apk。我已经创建了 keystore ,并且还按照文档中的建议在 build.gradle
文件中添加了信息。
但它在 app:mergeReleaseResources
处停留了 30-40 分钟,没有任何结果。我尝试过不同的应用程序,过去曾经构建过但现在无法使用的应用程序。我什至尝试重新安装 Android Studio 和 SDK,但它仍然卡住了。
请帮忙。
这是日志 -
```
gradlew.bat assembleRelease
WARNING: The option 'android.enableAapt2' is deprecated and should not be used anymore.
Use 'android.enableAapt2=true' to remove this warning.
It will be removed at the end of 2018..
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
WARNING: The specified Android SDK Build Tools version (25.0.1) is ignored, as it is below the minimum supported version (27.0.3) for Android Gradle Plugin 3.1.3.
Android SDK Build Tools 27.0.3 will be used.
To suppress this warning, remove "buildToolsVersion '25.0.1'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.
WARNING: The option 'android.enableAapt2' is deprecated and should not be used anymore.
Use 'android.enableAapt2=true' to remove this warning.
It will be removed at the end of 2018..
downloadRobolectricDependencies F:\Projects\react-native\Zest\android\build/robolectric-dependencies
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
WARNING: Configuration 'testCompile' is obsolete and has been replaced with 'testImplementation' and 'testApi'.
It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
WARNING: Configuration 'testApi' is obsolete and has been replaced with 'testImplementation'.
It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
WARNING: The specified Android SDK Build Tools version (26.0.2) is ignored, as it is below the minimum supported version (27.0.3) for Android Gradle Plugin 3.1.3.
Android SDK Build Tools 27.0.3 will be used.
To suppress this warning, remove "buildToolsVersion '26.0.2'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.
WARNING: The option 'android.enableAapt2' is deprecated and should not be used anymore.
Use 'android.enableAapt2=true' to remove this warning.
It will be removed at the end of 2018..
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
WARNING: Configuration 'testCompile' is obsolete and has been replaced with 'testImplementation' and 'testApi'.
It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
WARNING: Configuration 'testApi' is obsolete and has been replaced with 'testImplementation'.
It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
WARNING: The specified Android SDK Build Tools version (23.0.1) is ignored, as it is below the minimum supported version (27.0.3) for Android Gradle Plugin 3.1.3.
Android SDK Build Tools 27.0.3 will be used.
To suppress this warning, remove "buildToolsVersion '23.0.1'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.
WARNING: The option 'android.enableAapt2' is deprecated and should not be used anymore.
Use 'android.enableAapt2=true' to remove this warning.
It will be removed at the end of 2018..
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
WARNING: The specified Android SDK Build Tools version (26.0.1) is ignored, as it is below the minimum supported version (27.0.3) for Android Gradle Plugin 3.1.3.
Android SDK Build Tools 27.0.3 will be used.
To suppress this warning, remove "buildToolsVersion '26.0.1'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.
:app:preBuild UP-TO-DATE
:react-native-navigation:preBuild UP-TO-DATE
:react-native-navigation:preReleaseBuild UP-TO-DATE
:react-native-navigation:checkReleaseManifest
:react-native-navigation:processReleaseManifest
:react-native-splash-screen:preBuild UP-TO-DATE
:react-native-splash-screen:preReleaseBuild UP-TO-DATE
:react-native-splash-screen:checkReleaseManifest
:react-native-splash-screen:processReleaseManifest
:react-native-vector-icons:preBuild UP-TO-DATE
:react-native-vector-icons:preReleaseBuild UP-TO-DATE
:react-native-vector-icons:checkReleaseManifest
:react-native-vector-icons:processReleaseManifest
:app:preReleaseBuild
:react-native-navigation:compileReleaseAidl
:react-native-splash-screen:compileReleaseAidl
:react-native-vector-icons:compileReleaseAidl
:app:compileReleaseAidl
:react-native-navigation:packageReleaseRenderscript NO-SOURCE
:react-native-splash-screen:packageReleaseRenderscript NO-SOURCE
:react-native-vector-icons:packageReleaseRenderscript NO-SOURCE
:app:compileReleaseRenderscript
:app:checkReleaseManifest
:app:generateReleaseBuildConfig
:app:prepareLintJar UP-TO-DATE
:app:mergeReleaseShaders
:app:compileReleaseShaders
:app:generateReleaseAssets
:react-native-navigation:mergeReleaseShaders
:react-native-navigation:compileReleaseShaders
:react-native-navigation:generateReleaseAssets
:react-native-navigation:packageReleaseAssets
:react-native-splash-screen:mergeReleaseShaders
:react-native-splash-screen:compileReleaseShaders
:react-native-splash-screen:generateReleaseAssets
:react-native-splash-screen:packageReleaseAssets
:react-native-vector-icons:mergeReleaseShaders
:react-native-vector-icons:compileReleaseShaders
:react-native-vector-icons:generateReleaseAssets
:react-native-vector-icons:packageReleaseAssets
:app:mergeReleaseAssets
:app:generateReleaseResValues
:app:generateReleaseResources
:react-native-navigation:compileReleaseRenderscript
:react-native-navigation:generateReleaseResValues
:react-native-navigation:generateReleaseResources
:react-native-navigation:packageReleaseResources
:react-native-splash-screen:compileReleaseRenderscript
:react-native-splash-screen:generateReleaseResValues
:react-native-splash-screen:generateReleaseResources
:react-native-splash-screen:packageReleaseResources
:react-native-vector-icons:compileReleaseRenderscript
:react-native-vector-icons:generateReleaseResValues
:react-native-vector-icons:generateReleaseResources
:react-native-vector-icons:packageReleaseResources
:app:mergeReleaseResources
最佳答案
android {
// ...
aaptOptions.cruncherEnabled = false
aaptOptions.useNewCruncher = false
// ...
}
尝试在您的应用模块 build.gradle:
关于android - React Native 版本卡在应用程序 :mergeReleaseResources,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51257689/
我正在尝试为 React native 应用程序构建发布 apk。我已经创建了 keystore ,并且还按照文档中的建议在 build.gradle 文件中添加了信息。 但它在 app:mergeR
该应用程序运行良好,事实上我已经构建了 2 个发布 APK。这次修改了代码,来做./gradlew assembleRelease我收到以下错误: 错误 FAILURE:构建失败,出现异常。 什么地方
我能够创建调试版本,但发布版本失败,出现 app:mergeReleaseResources 和错误:java.util.concurrent.ExecutionException:异常。我已经尝试关
我已经为 cordova build设置了所有需要的要求。 我已经设置了所有需要的“环境变量”。 已安装:Java JDK、Android JDK、Android 目标和 Gradle。 问题: 当我
尝试构建 APK 一次并修复错误后,再次执行 ./gradlew assembleRelease 时出错:任务 ':app:mergeReleaseResources' 构建 APK 执行失败 最佳答
我正在尝试设置 Jenkins 服务器以自动构建 Unity,但出现 gradle 错误。 使用命令行构建工作正常,但如果尝试使用 Jenkins 则会失败。 日志: 失败:构建因异常而失败。 出了什
当我生成 APK 时,在构建 apk 时显示消息错误,详细消息如下: 出了什么问题:任务“:android:mergeReleaseResources”执行失败。 Multiple task acti
我在运行 ./gradlew assembleRelease 时遇到此错误。我在几个小时内一直在修补。请帮忙。它曾经成功构建,但是在我尝试清除某些内容并结合我的 git 历史记录中的不同文件夹之后,没
我在我的 React-Native-App 中要求 package.json 从那里读取版本号以在我的应用程序中显示它: const pjson = require('../../package.js
在我的 React Native (v0.57.7) 项目的 android 文件夹中运行 ./gradlew assembleRelease --stacktrace 命令时出现错误: > Task
我是一名优秀的程序员,十分优秀!