question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

defined multiple times

See original GitHub issue

Current behavior

I get a error while building a release for android: Error: /my-app/node_modules/@react-native-community/async-storage/android/build/.transforms/fc2daeb4ff0db30fd0f1f5e68862f91b/classes/classes.dex, Type com.reactnativecommunity.asyncstorage.AsyncLocalStorageUtil is defined multiple times: /my-app/node_modules/@react-native-community/async-storage/android/build/.transforms/fc2daeb4ff0db30fd0f1f5e68862f91b/classes/classes.dex, /my-app/android/app/build/intermediates/external_libs_dex/release/out/classes2.dex

Expected behavior

That I can build my release.

Repro steps

Environment

  • Async Storage version: 1.11.0
  • React-Native version: 0.62.2
  • Platform tested: Android
  • Logs/Error that are relevant:

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:13 (2 by maintainers)

github_iconTop GitHub Comments

10reactions
krizzucommented, May 28, 2020

Have you tried to clean build folders, ./gradlew clean?

5reactions
anshumanburmancommented, Aug 9, 2020

`Type com.reactnativecommunity.asyncstorage.AsyncLocalStorageUtil is defined multiple times: /Users/ansh/Documents/ANSH/FitnerApp/node_modules/@react-native-community/async-storage/android/build/.transforms/a5435cadaa866449cc02394986475e6b/classes/classes.dex, /Users/ansh/Documents/ANSH/FitnerApp/android/app/build/intermediates/external_libs_dex/release/mergeExtDexRelease/classes2.dex

` i am also facing this issue when generating apk but app is running well on device in debug mode. Please tell me the solution if you have solved.? Thanks in advance.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Type BuildConfig is defined multiple times - Stack Overflow
i have this issue in my case : Type com.BV.LinearGradient.BuildConfig is defined multiple times: /node_modules/react-native-linear-gradient/ ...
Read more >
Android Studio generating an error saying “is defined multiple ...
Android Studio generating an error saying “is defined multiple times”.
Read more >
Android : Type BuildConfig is defined multiple times - YouTube
Android : Type BuildConfig is defined multiple times [ Beautify Your Computer : https://www.hows.tech/p/recommended.html ] Android : Type ...
Read more >
Type com.zipow.cmmlib.AppContext$AppContextImpl$1 is ...
Type com.zipow.cmmlib.AppContext$AppContextImpl$1 is defined multiple times · Meeting SDK Android.
Read more >
Android Question error b4a AnimRes is defined multiple times
Hi gives this error when outputting B4A Version: 11.50 Parsing code. (0.31s) Java Version: 8 Building folders structure.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found