Skip to content
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

A failure building in debug and release in series #649

Closed
vchimev opened this issue Dec 8, 2016 · 5 comments
Closed

A failure building in debug and release in series #649

vchimev opened this issue Dec 8, 2016 · 5 comments
Assignees
Milestone

Comments

@vchimev
Copy link

vchimev commented Dec 8, 2016

Tell us about the problem

There is a failure switching between build in debug and build in release.

Steps to reproduce:

tns create TNS_App && cd TNS_App
tns build android
tns build android --release --keyStorePath <path> --keyStorePassword <pass> --keyStoreAlias <alias> --keyStoreAliasPassword <pass> 

Output:

...
Merged dex #45 (1 defs/2.6KiB)
Merged dex #46 (1 defs/1.2KiB)
Merged dex #47 (1 defs/1.3KiB)
Merged dex #48 (1 defs/1.4KiB)
Merged dex #49 (2014 defs/3352.8KiB)
Result is 2062 defs/2520.4KiB. Took 0.3s
:buildMetadata
Exception in thread "main" java.lang.IllegalArgumentException: Class android.support.v4.print.PrintHelper$PrintHelperImpl$2 conflict: /Users/vchimev/Work/release/TNS_App/platforms/android/build/intermediates/transforms/dex/F0F1/release/folders/1000/1f/main/classes.dex and /Users/vchimev/Work/release/TNS_App/platforms/android/build/intermediates/transforms/dex/F0F1/debug/folders/1000/1f/main/classes.dex
	at com.telerik.metadata.ClassRepo.addToCache(ClassRepo.java:21)
	at com.telerik.metadata.Builder.build(Builder.java:40)
	at com.telerik.metadata.Generator.main(Generator.java:44)
:buildMetadata FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':buildMetadata'.
> Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_112.jdk/Contents/Home/bin/java'' finished with non-zero exit value 1

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

BUILD FAILED

Please provide the following version numbers that your issue occurs with:

  • CLI: 2.4.2

package.json

{
  "description": "NativeScript Application",
  "license": "SEE LICENSE IN <your-license-filename>",
  "readme": "NativeScript Application",
  "repository": "<fill-your-repository-here>",
  "nativescript": {
    "id": "org.nativescript.TNSApp",
    "tns-android": {
      "version": "2.4.1"
    }
  },
  "dependencies": {
    "nativescript-theme-core": "^0.2.1",
    "tns-core-modules": "2.4.2",
    "tns-core-modules-snapshot": "2.4.2-5.2.361"
  },
  "devDependencies": {
    "babel-traverse": "6.19.0",
    "babel-types": "6.19.0",
    "babylon": "6.14.1",
    "lazy": "1.0.11",
    "nativescript-dev-android-snapshot": "^0.*.*"
  }
}
@slavchev slavchev self-assigned this Dec 9, 2016
@slavchev slavchev added this to the 2.5.0-RC milestone Dec 9, 2016
slavchev pushed a commit that referenced this issue Dec 9, 2016
@slavchev
Copy link

slavchev commented Dec 9, 2016

same as #616

@slavchev
Copy link

slavchev commented Dec 9, 2016

Cannot reproduce it following the provided steps. Any other instructions would be helpful.

@vchimev
Copy link
Author

vchimev commented Dec 9, 2016

I sent you a sample project.

@slavchev
Copy link

slavchev commented Dec 9, 2016

Cannot reproduce it with the sent project.

@vchimev
Copy link
Author

vchimev commented Dec 14, 2016

I'm not able to reproduce it myself anymore. Thanks for the effort.

@vchimev vchimev closed this as completed Dec 14, 2016
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