Try to search your question here, if you can't find : Ask Any Question Now ?

Ionic Cordova Error When Build and Running

HomeCategory: stackoverflowIonic Cordova Error When Build and Running
Avatarcraig asked 1 month ago

i have some error when i want to compile my ionic4 project app to my android phone. When i running “ionic cordova run android”, it shows me the error, so the app can’t be running/instaled in my phone. Please help me. thnks

This is the error code:

BUILD SUCCESSFUL in 1s

1 actionable task: 1 executed
Subproject Path: CordovaLib
Subproject Path: app
Exception in thread “main” java.lang.NullPointerException
at org.gradle.wrapper.BootstrapMainStarter.findLauncherJar(BootstrapMainStarter.java:38)
at org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:26)
at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:108)
at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
cmd: Command failed with exit code 1 Error output:
Exception in thread “main” java.lang.NullPointerException
at org.gradle.wrapper.BootstrapMainStarter.findLauncherJar(BootstrapMainStarter.java:38)
at org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:26)
at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:108)
at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
[ERROR] An error occurred while running subprocess cordova.

    cordova run android exited with exit code 1.

    Re-running this command with the --verbose flag may provide more information.
1 Answers
Best Answer
AvatarArben answered 1 month ago
Your Answer

8 + 2 =

Popular Tags

WP Facebook Auto Publish Powered By : XYZScripts.com