Discussion:
setup.sh and build errors
mobileorg-android+noreply-APn2wQeVcEwqayalRLet6s-tZ4rPhATjE23XY5-/
2013-11-21 10:37:57 UTC
Permalink
I'm absolutely new to Android development. I installed the Android Development Kit and the android-13 and android-15 targets, then ran ./setup.sh. I got the following output, which has some errors:

$ ./setup.sh
Submodule 'libs/ActionBarSherlock' (https://github.com/JakeWharton/ActionBarSherlock.git) registered for path 'libs/ActionBarSherlock'
Cloning into 'libs/ActionBarSherlock'...
remote: Counting objects: 18633, done.
remote: Compressing objects: 100% (5687/5687), done.
remote: Total 18633 (delta 10390), reused 17691 (delta 9580)
Receiving objects: 100% (18633/18633), 10.38 MiB | 1.87 MiB/s, done.
Resolving deltas: 100% (10390/10390), done.
Checking connectivity... done
Submodule path 'libs/ActionBarSherlock': checked out '9598f2bb2ceed4a834cd5586a903f270ca4c0ccc'
Resolved location of library project to: /home/ian/Applications/mobileorg-android/libs/locale
Updated project.properties
Updated local.properties
Added file ./proguard-project.txt
Error: The project either has no target set or the target is invalid.
Please provide a --target to the 'android update' command.
Error: The project either has no target set or the target is invalid.
Please provide a --target to the 'android update' command.
Updated project.properties
Updated local.properties
No project name specified, using project folder name 'library'.
If you wish to change it, edit the first line of build.xml.
Added file libs/ActionBarSherlock/library/build.xml
Added file libs/ActionBarSherlock/library/proguard-project.txt

Do they mean I still haven't set things up properly?

Furthermore, when I do ant build, I get this at the end:

BUILD FAILED
/home/ian/Applications/adt-bundle-linux-x86-20131030/sdk/tools/ant/build.xml:601: The following error occurred while executing this line:
/home/ian/Applications/mobileorg-android/libs/locale/build.xml:46: sdk.dir is missing. Make sure to generate local.properties using 'android update project' or to inject it through an env var

Where should I set this?

Loading...