I am trying to build an apk using cordova and I have done this before, Worked pretty fine, but now for some odd reason it’s giving me error. What I have installed is
cordova 1.8.0
jdk
android studio
and
some sdks (versions 8.0,7.1 and 4.0)
It is giving me following error
‘’'FAILURE: Build failed with an exception.
-
What went wrong:
Invalid pc in LineNumberTable in class file build_2gb5hf5cy2yed0fy72w37rfqj -
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. -
Get more help at https://help.gradle.org
BUILD FAILED in 0s
cmd: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.
-
What went wrong:
Invalid pc in LineNumberTable in class file build_2gb5hf5cy2yed0fy72w37rfqj -
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. -
Get more help at https://help.gradle.org
BUILD FAILED in 0s’’’
here’s the full report
‘’'Android Studio project detected
ANDROID_HOME=C:\Users\92320\AppData\Local\Android\Sdk
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_191
studio
Subproject Path: CordovaLib
Subproject Path: app
publishNonDefault is deprecated and has no effect anymore. All variants are now published.
FAILURE: Build failed with an exception.
-
What went wrong:
Invalid pc in LineNumberTable in class file build_2gb5hf5cy2yed0fy72w37rfqj -
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. -
Get more help at https://help.gradle.org
BUILD FAILED in 0s
cmd: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.
-
What went wrong:
Invalid pc in LineNumberTable in class file build_2gb5hf5cy2yed0fy72w37rfqj -
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. -
Get more help at https://help.gradle.org
BUILD FAILED in 0s’’’
Please help