help building Hello World for replicant sdk

Scott N. Walck walck at lvc.edu
Tue Jul 5 11:46:23 UTC 2011


Hi folks,

I'm trying to build the "Hello, World" app described in
android-sdk_eng.gnutoo_linux-x86/docs/resources/tutorials/hello-world.html
for use with the replicant sdk.

I downloaded the replicant sdk from
http://ftp.osuosl.org/pub/replicant/sdk/0001/sdk/replicant-sdk_eng.gnu_linux-x86.zip
and unzipped it.

I created a project and put in the Hello, World source code.

When I try to use ant to build the thing, I start to run into problems.

First, ant seems to want a directory that's missing:

> walck at walck-nsf:~/computer/replicant/FirstAppProject$ ant debug
> Buildfile: build.xml
>     [setup] Android SDK Tools Revision 6
>     [setup] Project Target: Android 2.2.1
>     [setup] API level: 8
>     [setup] WARNING: No minSdkVersion value set. Application will install on all Android versions.

> BUILD FAILED
> /home/walck/computer/replicant/FirstAppProject/build.xml:65: Rules directory '/usr/local/walck-src/replicant/sdk/android-sdk_eng.gnutoo_linux-x86/platforms/android-2.2.1/ant/' is missing.

> Total time: 0 seconds

I go ahead and make the directory it wants.  Now it wants ant_rules_r2.xml:

> walck at walck-nsf:~/computer/replicant/FirstAppProject$ ant debug
> Buildfile: build.xml
>     [setup] Android SDK Tools Revision 6
>     [setup] Project Target: Android 2.2.1
>     [setup] API level: 8
>     [setup] WARNING: No minSdkVersion value set. Application will install on all Android versions.

> BUILD FAILED
> /home/walck/computer/replicant/FirstAppProject/build.xml:65: Build rules file '/usr/local/walck-src/replicant/sdk/android-sdk_eng.gnutoo_linux-x86/platforms/android-2.2.1/ant/ant_rules_r2.xml' is missing.

> Total time: 0 seconds

I copy ant_rules_r2.xml from tools/ant/ant_rules_r2.xml into the
directory where it seems to want it, and try again:

> walck at walck-nsf:~/computer/replicant/FirstAppProject$ ant debug
> Buildfile: build.xml
>     [setup] Android SDK Tools Revision 6
>     [setup] Project Target: Android 2.2.1
>     [setup] API level: 8
>     [setup] WARNING: No minSdkVersion value set. Application will install on all Android versions.
>     [setup] Importing rules file: platforms/android-2.2.1/ant/ant_rules_r2.xml

> -compile-tested-if-test:

> -dirs:
>      [echo] Creating output directories if needed...
>     [mkdir] Created dir: /home/walck/computer/replicant/FirstAppProject/gen
>     [mkdir] Created dir: /home/walck/computer/replicant/FirstAppProject/bin/classes

> -resource-src:
>      [echo] Generating R.java / Manifest.java from the resources...

> -aidl:
>      [echo] Compiling aidl files into Java classes...

> compile:
>     [javac] Compiling 2 source files to /home/walck/computer/replicant/FirstAppProject/bin/classes

> -dex:
>      [echo] Converting compiled files and external libraries into /home/walck/computer/replicant/FirstAppProject/bin/classes.dex...

> -package-resources:
>      [echo] Packaging resources
>  [aaptexec] Creating full resource package...

> -package-debug-sign:

> BUILD FAILED
> /usr/local/walck-src/replicant/sdk/android-sdk_eng.gnutoo_linux-x86/platforms/android-2.2.1/ant/ant_rules_r2.xml:293: The following error occurred while executing this line:
> /usr/local/walck-src/replicant/sdk/android-sdk_eng.gnutoo_linux-x86/platforms/android-2.2.1/ant/ant_rules_r2.xml:156: java.lang.NoClassDefFoundError: com/android/jarutils/DebugKeyProvider$KeytoolException

> Total time: 2 seconds

Now I'm not sure what to do.  Any suggestions?

Thanks,

Scott


More information about the Replicant mailing list