Discussion:
The Build fails
mobileorg-android
2013-04-27 21:45:11 UTC
Permalink
Hello,

i tried building mobileorg on my machine, but was not able to get the
build to pass. This is what I did:

1. git clone the repo from github onto my local disk.
2. downloaded and unzipped android-sdk-linux and added tools/ directory
to my PATH.
3. Installed APIs 13 & 15 via the Android SDK Manager
4. Ran ./setup.sh
5. Ran ant debug
6. The build fails with this:
BUILD FAILED
/home/delexi/android-sdk-linux/tools/ant/build.xml:595: The following
error occurred while executing this line:
/home/delexi/code/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
7. Ran cat local.properties :
# ... some comments ...
# ... some comments ...
# ...
sdk.dir=/home/delexi/android-sdk-linux

Some more info:

$ ant -version
Apache Ant(TM) version 1.9.0 compiled on March 13 2013

$ java -version
java version "1.7.0_21"
OpenJDK Runtime Environment (IcedTea 2.3.9) (ArchLinux build 7.u17_2.3.9-1-x86_64)
OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)

If you need further or more detailed info please do not hesitate to ask,
I am happy to provide it.


Regards,
Alex
mobileorg-android on behalf of Matthew Jones
2013-04-27 21:58:23 UTC
Permalink
Looks like the problem is in the libs/locale dependency directory. What
does your local.properties file look like there? It looks like you haven't
initialized this mobileorg dependency.


On Sat, Apr 27, 2013 at 5:45 PM, mobileorg-android <
Post by mobileorg-android
Hello,
i tried building mobileorg on my machine, but was not able to get the
1. git clone the repo from github onto my local disk.
2. downloaded and unzipped android-sdk-linux and added tools/ directory
to my PATH.
3. Installed APIs 13 & 15 via the Android SDK Manager
4. Ran ./setup.sh
5. Ran ant debug
BUILD FAILED
/home/delexi/android-sdk-linux/tools/ant/build.xml:595: The following
/home/delexi/code/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
# ... some comments ...
# ... some comments ...
# ...
sdk.dir=/home/delexi/android-sdk-linux
$ ant -version
Apache Ant(TM) version 1.9.0 compiled on March 13 2013
$ java -version
java version "1.7.0_21"
OpenJDK Runtime Environment (IcedTea 2.3.9) (ArchLinux build
7.u17_2.3.9-1-x86_64)
OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)
If you need further or more detailed info please do not hesitate to ask,
I am happy to provide it.
Regards,
Alex
--
You received this message because you are subscribed to the Google Groups
"mobileorg-android" group.
To unsubscribe from this group and stop receiving emails from it, send an
Visit this group at http://groups.google.com/group/mobileorg-android?hl=en
.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "mobileorg-android" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mobileorg-android+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To post to this group, send email to mobileorg-android-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
Visit this group at http://groups.google.com/group/mobileorg-android?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
mobileorg-android
2013-04-27 22:48:45 UTC
Permalink
Hello Matthew,

mobileorg-android on behalf of Matthew Jones
Post by mobileorg-android on behalf of Matthew Jones
Looks like the problem is in the libs/locale dependency directory.
 What does your local.properties file look like there?  It looks like
you haven't initialized this mobileorg dependency.
you are right, there is no local.properties file under libs/locale/. How
do I generate it? I tried the following:
[pwd: mobileorg-android]$ android update project -s -p .
Updated local.properties
Updated 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.

Which - as you might guess - did not create any local.properties
file. What did I do wrong?
Post by mobileorg-android on behalf of Matthew Jones
On Sat, Apr 27, 2013 at 5:45 PM, mobileorg-android <
Hello,
i tried building mobileorg on my machine, but was not able to get the
1. git clone the repo from github onto my local disk.
2. downloaded and unzipped android-sdk-linux and added tools/ directory
   to my PATH.
3. Installed APIs 13 & 15 via the Android SDK Manager
4. Ran ./setup.sh
5. Ran ant debug
BUILD FAILED
/home/delexi/android-sdk-linux/tools/ant/build.xml:595: The following
/home/delexi/code/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
# ... some comments ...
# ... some comments ...
# ...
sdk.dir=/home/delexi/android-sdk-linux
$ ant -version
Apache Ant(TM) version 1.9.0 compiled on March 13 2013
$ java -version
java version "1.7.0_21"
OpenJDK Runtime Environment (IcedTea 2.3.9) (ArchLinux build 7.u17_2.3.9-1-x86_64)
OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)
If you need further or more detailed info please do not hesitate to ask,
I am happy to provide it.
Regards,
Alex
--
You received this message because you are subscribed to the
Google Groups "mobileorg-android" group.
To unsubscribe from this group and stop receiving emails from it,
send an email to mobileorg-android+unsubscribe-/
To post to this group, send email to mobileorg-android-/
Visit this group at http://groups.google.com/group/
mobileorg-android?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google
Groups "mobileorg-android" group.
To unsubscribe from this group and stop receiving emails from it,
send an email to mobileorg-android+unsubscribe-/
To post to this group, send email to mobileorg-android-/
Visit this group at http://groups.google.com/group/mobileorg-android?
hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
I am sorry, should it be that I am asking this maybe simple
questions. I am completely new to Android and Ant so if you have any
documentation at hand that explains this in further detail than the
HACKING.md i would be happy to read it.

Regards,
Alex
--
You received this message because you are subscribed to the Google Groups "mobileorg-android" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mobileorg-android+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To post to this group, send email to mobileorg-android-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
Visit this group at http://groups.google.com/group/mobileorg-android?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
mobileorg-android
2013-04-28 16:46:11 UTC
Permalink
Hello again,

I took another look at this this morning and I think I found the
problem. In setup.sh I appended '--target android 15' to line 4 and 6
and the build ran through successfully.

Regards,
Alex

mobileorg-android
Post by mobileorg-android
Hello Matthew,
mobileorg-android on behalf of Matthew Jones
Post by mobileorg-android on behalf of Matthew Jones
Looks like the problem is in the libs/locale dependency directory.
 What does your local.properties file look like there?  It looks like
you haven't initialized this mobileorg dependency.
you are right, there is no local.properties file under libs/locale/. How
[pwd: mobileorg-android]$ android update project -s -p .
Updated local.properties
Updated 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.
Which - as you might guess - did not create any local.properties
file. What did I do wrong?
Post by mobileorg-android on behalf of Matthew Jones
On Sat, Apr 27, 2013 at 5:45 PM, mobileorg-android <
Hello,
i tried building mobileorg on my machine, but was not able to get the
1. git clone the repo from github onto my local disk.
2. downloaded and unzipped android-sdk-linux and added tools/ directory
   to my PATH.
3. Installed APIs 13 & 15 via the Android SDK Manager
4. Ran ./setup.sh
5. Ran ant debug
BUILD FAILED
/home/delexi/android-sdk-linux/tools/ant/build.xml:595: The following
/home/delexi/code/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
# ... some comments ...
# ... some comments ...
# ...
sdk.dir=/home/delexi/android-sdk-linux
$ ant -version
Apache Ant(TM) version 1.9.0 compiled on March 13 2013
$ java -version
java version "1.7.0_21"
OpenJDK Runtime Environment (IcedTea 2.3.9) (ArchLinux build
7.u17_2.3.9-1-x86_64)
OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)
If you need further or more detailed info please do not hesitate to ask,
I am happy to provide it.
Regards,
Alex
--
You received this message because you are subscribed to the
Google Groups "mobileorg-android" group.
To unsubscribe from this group and stop receiving emails from it,
send an email to mobileorg-android+unsubscribe-/
To post to this group, send email to mobileorg-android-/
Visit this group at http://groups.google.com/group/
mobileorg-android?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google
Groups "mobileorg-android" group.
To unsubscribe from this group and stop receiving emails from it,
send an email to mobileorg-android+unsubscribe-/
To post to this group, send email to mobileorg-android-/
Visit this group at http://groups.google.com/group/mobileorg-android?
hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
I am sorry, should it be that I am asking this maybe simple
questions. I am completely new to Android and Ant so if you have any
documentation at hand that explains this in further detail than the
HACKING.md i would be happy to read it.
Regards,
Alex
--
You received this message because you are subscribed to the Google Groups "mobileorg-android" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mobileorg-android+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To post to this group, send email to mobileorg-android-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
Visit this group at http://groups.google.com/group/mobileorg-android?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
mobileorg-android on behalf of Matthew Jones
2013-04-29 04:38:27 UTC
Permalink
Excellent... glad to hear that it worked for you


On Sun, Apr 28, 2013 at 12:46 PM, mobileorg-android <
Post by mobileorg-android
Hello again,
I took another look at this this morning and I think I found the
problem. In setup.sh I appended '--target android 15' to line 4 and 6
and the build ran through successfully.
Regards,
Alex
mobileorg-android
Post by mobileorg-android
Hello Matthew,
mobileorg-android on behalf of Matthew Jones
Post by mobileorg-android on behalf of Matthew Jones
Looks like the problem is in the libs/locale dependency directory.
What does your local.properties file look like there? It looks like
you haven't initialized this mobileorg dependency.
you are right, there is no local.properties file under libs/locale/. How
[pwd: mobileorg-android]$ android update project -s -p .
Updated local.properties
Updated 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.
Which - as you might guess - did not create any local.properties
file. What did I do wrong?
Post by mobileorg-android on behalf of Matthew Jones
On Sat, Apr 27, 2013 at 5:45 PM, mobileorg-android <
Hello,
i tried building mobileorg on my machine, but was not able to get the
1. git clone the repo from github onto my local disk.
2. downloaded and unzipped android-sdk-linux and added tools/ directory
to my PATH.
3. Installed APIs 13 & 15 via the Android SDK Manager
4. Ran ./setup.sh
5. Ran ant debug
BUILD FAILED
/home/delexi/android-sdk-linux/tools/ant/build.xml:595: The following
/home/delexi/code/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
# ... some comments ...
# ... some comments ...
# ...
sdk.dir=/home/delexi/android-sdk-linux
$ ant -version
Apache Ant(TM) version 1.9.0 compiled on March 13 2013
$ java -version
java version "1.7.0_21"
OpenJDK Runtime Environment (IcedTea 2.3.9) (ArchLinux build
7.u17_2.3.9-1-x86_64)
OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)
If you need further or more detailed info please do not hesitate to ask,
I am happy to provide it.
Regards,
Alex
--
You received this message because you are subscribed to the
Google Groups "mobileorg-android" group.
To unsubscribe from this group and stop receiving emails from it,
send an email to mobileorg-android+unsubscribe-/
To post to this group, send email to mobileorg-android-/
Visit this group at http://groups.google.com/group/
mobileorg-android?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google
Groups "mobileorg-android" group.
To unsubscribe from this group and stop receiving emails from it,
send an email to mobileorg-android+unsubscribe-/
To post to this group, send email to mobileorg-android-/
Visit this group at http://groups.google.com/group/mobileorg-android?
hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
I am sorry, should it be that I am asking this maybe simple
questions. I am completely new to Android and Ant so if you have any
documentation at hand that explains this in further detail than the
HACKING.md i would be happy to read it.
Regards,
Alex
--
You received this message because you are subscribed to the Google Groups
"mobileorg-android" group.
To unsubscribe from this group and stop receiving emails from it, send an
Visit this group at http://groups.google.com/group/mobileorg-android?hl=en
.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "mobileorg-android" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mobileorg-android+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To post to this group, send email to mobileorg-android-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
Visit this group at http://groups.google.com/group/mobileorg-android?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
Loading...