-
Notifications
You must be signed in to change notification settings - Fork 665
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error build Android: Execution failed for task ':transformClassesWithDexForDebug'. #1256
Comments
From @shenmingxuanyi on August 10, 2016 6:29 please update the new version to npm server |
From @jpagand on August 10, 2016 7:45 Updated node to v6.3.1 |
Worked for me: |
@jpagand thanks this worked for me! |
Any buddy solve this problem |
Hi, what fixed it for me was: That was after I:
I had all the issues because of many changes in an old stack. By the way, bot before and after adding the platform I had |
Hello, When i run "ionic run android --device", it shows this error message. :transformClassesWithDexForDebug FAILED BUILD FAILED Total time: 32.749 secs FAILURE: Build failed with an exception.
And, this is my platforms/android/project.proporties details : //Project target. Does anyone know how to fix this problem? |
@rabbounicha did you resolve this issue? I am getting this now as well. |
@rabbounicha @Ross-Rawlins I'm going to close this issue, as it actually doesn't relate to the Ionic CLI. My suggestion would be to try removing the |
Thank you @dwieeb!, deleting platform and plugins directory worked for me. |
@dwieeb @ccontreras Same for me. Thanks guys 👍 |
The issue resolved on 3.7 by adding the below code on platforms/android/build.gradle
Complete line of codes |
I removed the android-support-v4.jar which located in platform/android/ . |
"cordova clean" fixed the issue for me. |
@andrezap thanks! worked really good! |
I had to uninstall all of my plugins and reinstall with ionic cordova plugin remove/add cordova-plugin-PLUGINNAME then I could build and run again |
I am facing same issue could someone please help me :transformClassesWithDexForDebug BUILD FAILED FAILURE: Build failed with an exception.
Total time: 8.358 secs FAILURE: Build failed with an exception.
[ERROR] An error occurred while running cordova run android (exit code 1). |
@Migg81 Same error here, did you find a fix? |
In my case issue is with plugin so I uninstall all of them and then reinstall them on by one and it got fixed. |
I fixed this by adding platform to specific version: |
Here another solution from the ionic framework forum |
===========================> error <========================== :app:extractTryWithResourcesSupportJarDebug UP-TO-DATE FAILURE: Build failed with an exception.
BUILD FAILED in 12s
BUILD FAILED in 12s [OK] Your app has been deployed. |
@dweeb 's answere is too easy to solve this - but it works perfect! |
try with this command once, hope it will fix your issue |
@andrezap thanks.... it worked for me without removing anything. |
Try install cordova-android-play-services-gradle-release |
@dwieeb Thank you. |
Worked for me: cordova platfrom remove android |
like @tonmoyUI said
|
Actually worked for me. Ionic cordova platform remove android And if the problem continues: -cmd with administrator rights and after that, you'll be able to build your apk for your device. |
This issue happened to me after opening the android directory in Android Sutdio. Apprently, a local.properties file was created, containing ndk home path. I removed the file and got it back working perfectly. Hope it helps! |
From @jpagand on August 10, 2016 6:5
Just trying to build on android the ionic 2 boilerplate app
Here is the build log:
I tried to add
and
But the same error persists
ionic info
:Copied from original issue: ionic-team/ionic-framework#7634
The text was updated successfully, but these errors were encountered: