개발 에러

git pull하다 dependency가 꼬여버렸을 때

student513 2020. 7. 29. 13:45
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:transformDexArchiveWithDexMergerForDevDebug'.
> com.android.build.api.transform.TransformException: java.lang.RuntimeException: java.lang.RuntimeException: 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: com.geektime.rnonesignalandroid.RNOneSignal$7

 

1. 안드로이드/ios내 build 폴더 모두 삭제

2. rm명령어의 -rf 옵션으로 삭제 : rm -rf node_modules