Jump to content

React-Native: Task :app:mergeDexRelease FAILED

Recommended Posts


Boas pessoal. 😁

Não sei se é aqui que é suposto postar esta dúvida, mas pelo facto da app ser construída em javascript arrisco em postar na mesma aqui.

Eu estou com serias dificuldades em fazer build apk da minha app. cada vez que resolvo um erro, aparece sempre outro do qual pelo que pesquisei no youtube, basta ir à pasta "project/android e fazer o comando "./gradlew assembleRelease" e realiza a construção com sucesso.

A mim aparece-me isto:



> Transform artifact full.jar (project :unimodules-react-native-adapter) with DexingWithClasspathTransform
AGPBI: {"kind":"error","text":"Default method desugaring of `org.unimodules.adapters.react.views.SimpleViewManagerAdapter` failed because its super class `com.facebook.react.uimanager.SimpleViewManager` is missing","sources":[{}],"tool":"D8"}

> Task :app:mergeDexRelease FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:mergeDexRelease'.
> Could not resolve all files for configuration ':app:releaseRuntimeClasspath'.
   > Failed to transform artifact 'full.jar (project :unimodules-react-native-adapter)' to match attributes {artifactType=android-dex, com.android.build.api.attributes.BuildTypeAttr=release, com.android.build.api.attributes.VariantAttr=release, com.android.build.gradle.internal.dependency.AndroidTypeAttr=Aar, dexing-enable-desugaring=true, dexing-is-debuggable=false, dexing-min-sdk=21, org.gradle.usage=java-runtime}.
      > Execution failed for DexingWithClasspathTransform: C:\Users\utilizador\projecto\node_modules\@unimodules\react-native-adapter\android\build\intermediates\full_jar\release\createFullJarRelease\full.jar.
         > Error while dexing.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.4.1/userguide/command_line_interface.html#sec:command_line_warnings

472 actionable tasks: 27 executed, 445 up-to-date


Não percebo se tem a ver com a versão do gradle instalado no Androidstudio, se tem a ver com a versão do Java.

Agradeço a ajuda.

Uma espécie de programador

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.