Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 [bug fix] 修复react-native-orientation package 导致打包失败的问题 #4

Merged
merged 1 commit into from
Dec 26, 2018

Conversation

singcl
Copy link
Contributor

@singcl singcl commented Dec 25, 2018

打包平台:win10
安卓打包错误:
FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':react-native-orientation: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

解决方法:Add subprojects {} to android/build.gradle

BUILD SUCCESSFUL in 3m 21s
168 actionable tasks: 34 executed, 134 up-to-date

@XboxYan
Copy link
Owner

XboxYan commented Dec 26, 2018

@singcl 我这边打包的时候好像没碰到这些问题?

@singcl
Copy link
Contributor Author

singcl commented Dec 26, 2018

@XboxYan 可以看看这个issue: Execution failed for task ':react-native-orientation:verifyReleaseResources' #290.

react-native-orientation 这个库好像很久没人维护了,很多人都遇到了这个问题。里面还有其他issues 很多都提到了这个问题

@XboxYan
Copy link
Owner

XboxYan commented Dec 26, 2018

@singcl 那就奇怪了,我基本上都是使用最新的,也没碰到这个问题,你是run的时候出错的还是打包release版本的时候出错的?

@XboxYan
Copy link
Owner

XboxYan commented Dec 26, 2018

@singcl 刚才试了一下,确实有这个问题,我是在run的时候没有问题,打包的时候才出现这个问题,加上上述配置会确实成功了^^~

@XboxYan XboxYan merged commit e414621 into XboxYan:master Dec 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants