IONIC 3 - error generating build - ionic cordova build android --prod --release

0

Speak, I'm having a problem when trying to build an IONIC 3 application, it follows the data below the environment and the errors I'm having, if someone has already gone through this and got the solution and can help, already Thank you!

ionic info

cli packages: (/ home / robinson / Documents / myProject / my-app / node_modules)

@ionic/cli-utils  : 1.19.2
ionic (Ionic CLI) : 3.20.0

global packages:

cordova (Cordova CLI) : 7.1.0 

local packages:

@ionic/app-scripts : 3.1.0
Cordova Platforms  : android 6.3.0
Ionic Framework    : ionic-angular 3.9.2

System:

Android SDK Tools : 26.1.1
Node              : v7.7.3
npm               : 4.1.2 
OS                : Linux 4.4

Environment Variables:

ANDROID_HOME : /home/Android/Sdk

Misc:

backend : pro

cordova requirements

Requirements check results for android:

Java JDK: installed 1.8.0

Android SDK: installed true

Android target: installed android-27, android-26

Gradle: installed /usr/lib/gradle/4.3.1/bin/gradle

Error generated after running: ionic cordova build android --prod --release

: transformClassesWithDexForArmv7Release  FAILED

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ': transformClassesWithDexForArmv7Release'.

      

    com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexException: Multiple dex files define Lcom / google / android / gms / auth / api / signin / internal / zzo;

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 42.291 secs Error: / home / robinson / Documents / myProject / my-app / platforms / android / gradlew: Command failed with exit code 1 Error output: Note: Some input files use or override the deprecated API. Note: Recompile with -Xlint: deprecation for details.

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ': transformClassesWithDexForArmv7Release'.

      

    com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexException: Multiple dex files define Lcom / google / android / gms / auth / api / signin / internal / zzo;

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

[ERROR] An error occurred while running cordova build android --release (exit code 1).

    
asked by anonymous 01.04.2018 / 20:22

2 answers

0

Well, I left my environment with:

Cordova Platforms  : android 6.3.0 

I took the plugin from firebase:

npm remove  @ionic-native/firebase

ionic cordova plugin remove cordova-plugin-firebase

substate by link

so compile, if I upgraded to android 7.0 buga, then I'm working that way for now!

Thank you!

    
08.04.2018 / 04:28
-1

This is a very annoying problem to analyze, possibly inconsistent versions of libraries that specify Play Services are occurring.

Try to enter your project.properties file and check the library versions. One suggestion is to try to leave the same equals, you can make these changes in the file itself

    
03.04.2018 / 02:43