This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
This bug was originally marked as duplicate of bug 241689, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related. Build: NetBeans IDE 8.0 (Build 201403101706) VM: Java HotSpot(TM) 64-Bit Server VM, 25.0-b70, Java(TM) SE Runtime Environment, 1.8.0-b132 OS: Windows 7 User Comments: iluvtr: Recently I changed the location of the Android SDK, I forgot to change the location in NB config, tried to run the project and I got this error, I think you should provide a better exception handling for situations like this. A message: 'An error has ocurred' is unacceptable, maybe a 'Android SDK not found. Please verify the location of the Android SDK' Stacktrace: java.lang.NullPointerException at org.netbeans.modules.cordova.platforms.android.AndroidDevice.addProperties(AndroidDevice.java:184) at org.netbeans.modules.cordova.CordovaPerformer.properties(CordovaPerformer.java:354) at org.netbeans.modules.cordova.CordovaPerformer.access$100(CordovaPerformer.java:95) at org.netbeans.modules.cordova.CordovaPerformer$1.run(CordovaPerformer.java:208) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1423) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
Created attachment 148339 [details] stacktrace
please run following command from command line: android list target and attach output here. Thanks
Please make sure that you have at least one Android SDK Platform installed, not only Android SDK tools. Without SDK Platform, Cordova won't be able to build the apk.