jpush-react-native icon indicating copy to clipboard operation
jpush-react-native copied to clipboard

google play 版Error: Program type already present: cn.asus.push.BuildConfig

Open cctvmikeowen opened this issue 5 years ago • 1 comments

你的运行环境

  • 插件版本:
  • 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'.

重现步骤

  1. 本地node_modules/jcore-react-native/android/libs 和node_modules/jcore-react-native/libs目录下的.jar .so删除
  2. 从官网下载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'.

cctvmikeowen avatar Oct 09 '20 04:10 cctvmikeowen

请问这个问题解决了吗

gitliyucg avatar Nov 02 '20 07:11 gitliyucg