React Native项目 Android 调试

调试问题

  • What went wrong:
    Execution failed for task ':app:mergeExtDexDebug'.

A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives:
Learn how to resolve the issue at https://developer.android.com/studio/build/dependencies#duplicate_classes.
Program type already present: cn.jpush.android.api.CallBackParams

Snip20200521_13.png

解决方案
定位到android文件夹
./gradlew clean

你可能感兴趣的:(React Native项目 Android 调试)