将我的 react-native 应用程序升级到 0.60.5 版后,该应用程序在 Debug模式下运行良好,但是当我尝试通过运行以下命令获取我的应用程序的 android 发布文件时:
react-native run-android --variant=release
进度卡在这一行:
> :app:transformClassesAndResourcesWithR8ForRelease
并永远卡在
注意:我尝试删除 build 和 gradle 文件夹并运行
./gradlew clean
但也没有用
最佳答案
您要使用的命令是测试命令APK
,并且您需要在此之前对其进行设置以签署应用程序。
Note:
that --variant=release is only available if you've set up signing as described above.
看到这个official document为签名和上传 key 创建发布应用程序。
关于android - react native 应用程序发布永远卡在应用程序 :transformClassesAndResourcesWithR8ForRelease,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57645498/