Closed luizalexandrew closed 5 years ago
@luizalexandrew Just change JAVA_VERSION on 1_8 in your gradle file
@luizalexandrew, did @VolodymyrAndrushchak 's suggestion work for you?
@VolodymyrAndrushchak where to find gradle file in Ionic 2. i'm new to ionic. got same issue please help me. Thanks in advance.
@VolodymyrAndrushchak while that may be a fix for local builds, all cloud builds from a service such as Adobe PhoneGap Build will fail.
Did anyone find a workaround for the cloud builds? I'm using the cloud service from Adobe's build.phonegap.com and it is indeed complaining about the diamond operators and the lambdas.
@VolodymyrAndrushchak JAVA_VERSION on 1_8 need Jack, but this is deprecated
https://source.android.com/setup/build/jack
Warning: As of this March 14, 2017 announcement, the Jack toolchain is deprecated. Jack was the default Android build toolchain for Android 6.0–8.1.
I got this error after enable java 1.8 and jackOptions.
* What went wrong:
Execution failed for task ':transformClassesWithPreJackPackagedLibrariesForDebug'.
> java.lang.NullPointerException (no error message)
@luizalexandrew you can find a solution ?
Since I couldn't upgrade Java compiler version in my cordova-based project I've had to fork the project and patch the code in order to support older java 1.6.
If you're interested in the changes I could clean up the code a bit and make a pull request.
The best fix is to change the compiler to use a newer language level. Alternately you can try and older version of the plugin without the newer language features.
@luizalexandrew Just change JAVA_VERSION on 1_8 in your gradle file
it works for me. thanks
use this fork: https://github.com/fredmaggiowski/phonegap-nfc
@fredmaggiowski 's hack working.
at least, build successful.
I'm trying to build using version 1.0.3 of the plugin and is giving this error![captura de tela de 2018-07-04 18-40-24](https://user-images.githubusercontent.com/10445220/42294760-eff968ee-7fb9-11e8-967c-8ae7f6457b57.png)
cordova 7.1.0 android-platform 6.4.0 java version "1.8.0_171"
I downgraded to version 0.7.3 and this version is working