Skip to content Skip to sidebar Skip to footer

Error With Netbeans Android Plugin

I am currently developing an Android app and i am using Netbeans 6.9.1 and nbandroid 1.0 beta. I have installed Android SDK and configured everything but when i create a simple pro

Solution 1:

Just encountered the same issue. It seems to be related to spaces in path at the time ant tries to start dex.bat with parameters:

<exec executable="${dx}" failonerror="true">
            <arg value="--dex"/>
            <arg value="--output=${basedir}/${intermediate.dex}"/>
            <arg value="--positions=lines"/>
            <arg path="${build.classes.dir}"/>
</exec>

The project won't run if ${basedir}, ${intermediate.dex} or ${build.classes.dir} contain spaces.

Parameters for batch files have to be encapsulated with "...". But how to do this when ant starts the batch file?

My quick workaround was to move the folder of my netbeans android project (not all projects) to a path that doesn't contain spaces.

Solution 2:

Indeed it is a 'space in path' problem of Android SDK.

Other than that I'd strongly recommend you to update to newer version of both NetBeans and NBAndroid plugin.

Post a Comment for "Error With Netbeans Android Plugin"