Flapping Head » Android http://scottbarnham.com/blog Code and comments on web development, Django, Python and things (un)related. Wed, 22 Jun 2016 04:22:53 +0000 en-US hourly 1 http://wordpress.org/?v=4.3 Android PhoneGap SetupTask cannot be found http://scottbarnham.com/blog/2010/12/30/android-phonegap-setuptask-cannot-be-found/ http://scottbarnham.com/blog/2010/12/30/android-phonegap-setuptask-cannot-be-found/#comments Thu, 30 Dec 2010 12:20:28 +0000 http://scottbarnham.com/blog/?p=85 I was building an Android app using PhoneGap, but couldn’t get it to build. It was failing to build the Java stuff because the path to the SDK was wrong.

I kept getting error:

framework/build.xml:49: taskdef class com.android.ant.SetupTask cannot be found

It’s because my PATH environment variable was wrong. Specifically, it had trailing slashes.

This was on Ubuntu/Linux.

Got the same problem? Try this to see if it is a problem with slashes:

which android

Did the path have a double slash like: android-sdk-linux_x86/tools//android

echo $PATH

Do you have a path in there to the Android SDK tools directory which ends with a slash? Get rid of that slash and try again. You’re welcome.

]]>
http://scottbarnham.com/blog/2010/12/30/android-phonegap-setuptask-cannot-be-found/feed/ 0