生成APK react-native时出错

时间:2017-06-19 15:24:37

标签: react-native react-native-android

当我尝试生成我的apk时,它给了我这个错误 我尝试了很多解决方案并且没有解决问题

运行命令后

./gradlew assembleRelease

错误是:

Loading dependency graph, done.
warning: the transform cache was reset.
bundle: start
bundle: finish
bundle: Writing bundle output to: appfolder\android\app\build\intermediates\assets\release\index.andro
id.bundle
 
Don't know which android drawable suffix to use for asset: {"__packager_asset":true,"fileSystemLocation":"appfolder\\src\\public\\images\\icons","httpServerLocation":"/assets/src/public/images/icons","width":12,"height":10,"scales":
[1,2,3,4,5],"files":["appfolder\\src\\public\\images\\icons\\twitter@1x.png","appfolder\\src\\public\\images\\icons\\twitter@2x.png","appfolder\\src\\public\\images
\\icons\\twitter@3x.png","appfolder\\src\\public\\images\\icons\\twitter@4x.png","appfolder\\src\\public\\images\\icons\\twitter@5x.png"],"hash":"aa736287bfea056b34205edd2839d8cc","name":"twitter","
type":"png"}

 
:app:bundleReleaseJsAndAssets FAILED
 
FAILURE: Build failed with an exception.
 
* What went wrong:
Execution failed for task ':app:bundleReleaseJsAndAssets'.
> Process 'command 'cmd'' finished with non-zero exit value 1
 
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

1 个答案:

答案 0 :(得分:2)

错误出现在资产中:我删除了@ 5x 特别感谢@ G0dsquad的评论

相关问题