Skip to content

Execution failed for task ':transformClassesWithDexForF0Debug'. #2401

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

Closed
calacianu opened this issue Jan 10, 2017 · 3 comments
Closed

Execution failed for task ':transformClassesWithDexForF0Debug'. #2401

calacianu opened this issue Jan 10, 2017 · 3 comments

Comments

@calacianu
Copy link

Every time I run tns build android I get this error

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

com.android.build.api.transform.TransformException: java.lang.RuntimeException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/usr/lib/jvm/java-8-oracle/bin/java'' finished with non-zero exit value 137

@petekanev
Copy link
Contributor

@calacianu please provide more details regarding your project setup.

What versions of the nativescript CLI, nativescript core-modules and the nativescript android runtime are you using? (tns info)

Are you using any plugins in your projects?

How can we reproduce that crash?

Meanwhile you could try tns platform remove android && tns platform add android before firing up your project the next time and see if that helps.

Thanks!

@calacianu
Copy link
Author

calacianu commented Jan 11, 2017

Hi, thank you for your quick response.
This is my tns info output:
┌──────────────────┬─────────────────┬────────────────┬───────────────┐
│ Component │ Current version │ Latest version │ Information │
│ nativescript │ 2.4.2 │ 2.4.2 │ Up to date │
│ tns-core-modules │ │ 2.4.4 │ Not installed │
│ tns-android │ │ 2.4.1 │ Not installed │
│ tns-ios │ │ 2.4.0 │ Not installed │
└──────────────────┴─────────────────┴────────────────┴───────────────┘
I tried removing and adding the android platform.
Steps to reproduce:

  1. create a simple app
  2. and android platform
  3. run tns prepare android - build successfully
  4. run tns build android - I get this error and another one regarding metadata, but I posted it into another ticket

I used no plugins and the OS is Ubuntu 14

Thank you!

@petekanev
Copy link
Contributor

Closing in favor of #2402 as the two issues seem identical

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants