Expo Eas Build on Android Crashes on Run Gradlew



我正在尝试使用expo和eas构建SDK 47来构建我的react native应用程序。然而,当我在android中构建时,我在"运行gradlew"部分得到以下错误:

[stderr] /home/expo/workingdir/build/android/app/build/generated/rncli/src/main/java/com/facebook/react/PackageList.java:84: error: cannot find symbol
[stderr]       new CodePush(getResources().getString(com.myapp.com.myapp.R.string.CodePushDeploymentKey), getApplicationContext(), com.myapp.com.myapp.BuildConfig.DEBUG),
[stderr]                                                                                  ^
[stderr]   symbol:   variable CodePushDeploymentKey
[stderr]   location: class string
[stderr] 1 error
w: Detected multiple Kotlin daemon sessions at build/kotlin/sessions
[stderr] FAILURE: Build failed with an exception.
[stderr] * What went wrong:
[stderr] Execution failed for task ':app:compileReleaseJavaWithJavac'.
[stderr] > Compilation failed; see the compiler error output for details.
[stderr] * Try:
[stderr] > Run with --stacktrace option to get the stack trace.
[stderr] > Run with --info or --debug option to get more log output.
[stderr] > Run with --scan to get full insights.
[stderr] * Get more help at https://help.gradle.org
[stderr] BUILD FAILED in 8m 10s

任何建议吗?

我遇到了同样的问题:在"Run gregrew "Android版本(iOS版本没有问题)

好的是,我已经用Expo SDK 47成功构建了一个版本,所以我开始一个接一个地降级我正在使用的第三方软件包到那个成功构建的相同版本。

最后,罪魁祸首是@stripe/stripe-react-native. 从0.19.0版本恢复到0.13.1版本再次成功。

在你的情况下,它可能是任何其他第三方的软件包,所以我建议进行相同的过程。

降级条纹版本并不是一个好主意,特别是如果你的应用使用谷歌付费功能,原因是他们已经为谷歌付费按钮引入了新的品牌,这符合谷歌的指导方针。如果你将apk或android版本发送到商店,它很可能会被拒绝。

最新更新