google play 版Error: Program type already present: cn.asus.push.BuildConfig
你的运行环境
- 插件版本:
- react-native 版本:0.62 "jcore-react-native": "^1.8.0", "jpush-react-native": "^2.8.1",
google play无法审核通过,于是我把本地node_modules/jcore-react-native/android/libs 和node_modules/jcore-react-native/libs目录下的.jar .so删除,在把从官网下载google play版本,压缩包里面的.jar,和.so分别 放到node_modules/jcore-react-native/android/libs和node_modules/jcore-react-native/lib的对应位置,接着运行npx react-native run-android ,但是编译报错 Caused by: com.android.tools.r8.utils.AbortException: Error: Program type already present: cn.asus.push.BuildConfig at com.android.tools.r8.utils.Reporter.a(:21) at com.android.tools.r8.utils.Reporter.a(:7) at com.android.tools.r8.utils.t.a(:36) ... 36 more
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':app:mergeExtDexDebug'.
重现步骤
- 本地node_modules/jcore-react-native/android/libs 和node_modules/jcore-react-native/libs目录下的.jar .so删除
- 从官网下载google play版本,压缩包里面的.jar,和.so分别 放到node_modules/jcore-react-native/android/libs和node_modules/jcore-react-native/lib的对应位置 运行npx react-native run-android ,但是编译报错
Debug logs
包括 Android 或 iOS 的日志: Caused by: com.android.tools.r8.utils.AbortException: Error: Program type already present: cn.asus.push.BuildConfig at com.android.tools.r8.utils.Reporter.a(:21) at com.android.tools.r8.utils.Reporter.a(:7) at com.android.tools.r8.utils.t.a(:36) ... 36 more
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':app:mergeExtDexDebug'.
请问这个问题解决了吗