Results 1 to 8 of 8

Thread: Yet another Android problem

  1. #1

    Default Yet another Android problem

    Trying to build "RTBarebones" on android and i got this error:
    Code:
    BUILD FAILED
    D:\proton\RTBareBones\android\build.xml:111: Reference android.libraries.src not
     found.
    Already set up all the paths and modified the files needed and still got this error. I can not generate the APK because of this.
    Help!
    Last edited by kalango; 06-08-2011 at 02:32 AM. Reason: PROBLEM SOLVED

  2. #2
    Administrator Seth's Avatar
    Join Date
    Jul 2002
    Location
    Japan
    Posts
    5,340

    Default

    Hmm. I think this means ANT can't figure out where your android SDK is.

    Double check RTBareBones\android\local.properties - it should have a line like this:

    sdk.dir=C:\\pro\\android-sdk-windows

    Make sure that path is correct. Note, this is NOT the path to the NDK!! This is to the android-sdk, different beast.

    If that's not it.. hmm.. it works here, maybe I need to grab the latest Android SDK and see if something broke.
    Seth A. Robinson
    Robinson Technologies

  3. #3

    Default

    Hmm its was already like that.
    Do you think the problem might be because my Android SDK is in a different drive?
    Also when compiling the compiler says that there is no lib dependencies...
    here is the full log (some of it in portuguese "/)
    Code:
    D:\proton\RTBareBones\android>call app_info_setup.bat
    
    D:\proton\RTBareBones\android>set APP_NAME=RTBareBones
    
    D:\proton\RTBareBones\android>set SMALL_PACKAGE_NAME=rtbarebones
    
    D:\proton\RTBareBones\android>set PACKAGE_NAME=com.rtsoft.rtbarebones
    
    D:\proton\RTBareBones\android>set PATH_TO_PROJECT_DIR_FROM_CYGWIN=/cygdrive/d/pr
    oton/RTBarebones
    
    D:\proton\RTBareBones\android>set EMULATOR_AVD=@Emulator2.2
    
    D:\proton\RTBareBones\android>set ANDROID_DEVICE1=HT019P803554
    
    D:\proton\RTBareBones\android>set ANDROID_DEVICE2=HT848GZ55018
    
    D:\proton\RTBareBones\android>set ANDROID_EMU=emulator-5554
    
    D:\proton\RTBareBones\android>start emulator @Emulator2.2
    
    D:\proton\RTBareBones\android>C:\cygwin\bin\bash --login -i -c '/cygdrive/d/prot
    on/RTBarebones/android/build.sh'
    Android NDK: NDK installation path auto-detected: '/cygdrive/d/eclipse/android/n
    dk_crystax'
    Android NDK: GNU Make version 3.81 detected
    Android NDK: Host OS was auto-detected: windows
    Android NDK: Host CPU was auto-detected: x86
    Android NDK: HOST_TAG set to windows
    Android NDK: Host awk tool was auto-detected: awk
    Android NDK: Host awk test returned: Pass
    Android NDK:  This NDK supports the following toolchains and target ABIs:
    Android NDK:    arm-eabi-4.2.1:  armeabi
    Android NDK:    arm-eabi-4.4.0:  armeabi armeabi-v7a
    Android NDK:    x86-4.2.1:  x86
    Android NDK: Found supported platforms: android-3 android-4 android-5 android-8
    Android NDK: PLATFORM android-3 supports: arm
    Android NDK:   ABI arm sysroot is: /cygdrive/d/eclipse/android/ndk_crystax/build
    /platforms/android-3/arch-arm
    Android NDK: PLATFORM android-4 supports: arm
    Android NDK:   ABI arm sysroot is: /cygdrive/d/eclipse/android/ndk_crystax/build
    /platforms/android-4/arch-arm
    Android NDK: PLATFORM android-5 supports: arm x86
    Android NDK:   ABI arm sysroot is: /cygdrive/d/eclipse/android/ndk_crystax/build
    /platforms/android-5/arch-arm
    Android NDK:   ABI x86 sysroot is: /cygdrive/d/eclipse/android/ndk_crystax/build
    /platforms/android-5/arch-x86
    Android NDK: PLATFORM android-8 supports: arm x86
    Android NDK:   ABI arm sysroot is: /cygdrive/d/eclipse/android/ndk_crystax/build
    /platforms/android-8/arch-arm
    Android NDK:   ABI x86 sysroot is: /cygdrive/d/eclipse/android/ndk_crystax/build
    /platforms/android-8/arch-x86
    Android NDK: Found stable platform levels: 3 4 5 8
    Android NDK: Found max platform level: 8
    Android NDK: Looking for AndroidManifest.xml in /cygdrive/d/proton/rtbarebones/a
    ndroid
    Android NDK:     Found it !
    Android NDK: Found project path: /cygdrive/d/proton/rtbarebones/android
    Android NDK: Parsing /cygdrive/d/proton/rtbarebones/android/jni/Application.mk
    Android NDK:   Found APP_PLATFORM=android-8 in /cygdrive/d/proton/rtbarebones/an
    droid/default.properties
    Android NDK:   Defaulted to APP_BUILD_SCRIPT=/cygdrive/d/proton/rtbarebones/andr
    oid/jni/Android.mk
    Android NDK: Application 'local' is not debuggable
    Android NDK: Selecting optimization mode through Application.mk: release
    Android NDK: Building application 'local' for ABI 'armeabi'
    Android NDK: Using target toolchain 'arm-eabi-4.4.0' for 'armeabi' ABI
    Install        : librtbarebones.so => /cygdrive/d/proton/rtbarebones/android/lib
    s/armeabi
    
    D:\proton\RTBareBones\android>if not exist libs/armeabi/librtbarebones.so ..\..\
    shared\win\utils\beeper.exe /p
    
    D:\proton\RTBareBones\android>rmdir assets /S /Q
    
    D:\proton\RTBareBones\android>mkdir assets
    
    D:\proton\RTBareBones\android>mkdir assets\interface
    
    D:\proton\RTBareBones\android>xcopy ..\bin\interface assets\interface /E /F /Y
    D:\proton\RTBareBones\bin\interface\font_trajan.rtfont -> D:\proton\RTBareBones\
    android\assets\interface\font_trajan.rtfont
    D:\proton\RTBareBones\bin\interface\test.bmp -> D:\proton\RTBareBones\android\as
    sets\interface\test.bmp
    2 arquivo(s) copiado(s)
    
    D:\proton\RTBareBones\android>mkdir assets\game
    
    D:\proton\RTBareBones\android>xcopy ..\bin\game assets\game /E /F /Y
    Arquivo não encontrado  - game
    0 arquivo(s) copiado(s)
    
    D:\proton\RTBareBones\android>mkdir assets\audio
    
    D:\proton\RTBareBones\android>xcopy ..\bin\audio assets\audio /E /F /Y
    Arquivo não encontrado  - audio
    0 arquivo(s) copiado(s)
    
    D:\proton\RTBareBones\android>rmdir bin /S /Q
    
    D:\proton\RTBareBones\android>rmdir gen /S /Q
    
    D:\proton\RTBareBones\android>call ant debug
    Buildfile: D:\proton\RTBareBones\android\build.xml
        [setup] Android SDK Tools Revision 8
        [setup] Project Target: Android 2.2
        [setup] API level: 8
        [setup]
        [setup] ------------------
        [setup] Resolving library dependencies:
        [setup] No library dependencies.
        [setup]
        [setup] ------------------
        [setup]
        [setup] WARNING: Attribute minSdkVersion in AndroidManifest.xml (4) is lower
     than the project target API level (8)
        [setup]
        [setup] Importing rules file: tools\ant\main_rules.xml
    
    -debug-obfuscation-check:
    
    -set-debug-mode:
    
    -compile-tested-if-test:
    
    -dirs:
         [echo] Creating output directories if needed...
        [mkdir] Created dir: D:\proton\RTBareBones\android\bin
        [mkdir] Created dir: D:\proton\RTBareBones\android\gen
        [mkdir] Created dir: D:\proton\RTBareBones\android\bin\classes
    
    -pre-build:
    
    -resource-src:
         [echo] Generating R.java / Manifest.java from the resources...
    
    -aidl:
         [echo] Compiling aidl files into Java classes...
    
    -pre-compile:
    
    compile:
    
    BUILD FAILED
    D:\proton\RTBareBones\android\build.xml:111: Reference android.libraries.src not
     found.
    
    Total time: 7 seconds
    can't find 'bin\RTBareBones-debug.apk' to install
    * daemon not running. starting it now on port 5037 *
    * daemon started successfully *
    I will try to download the latest SDK tools for android.

  4. #4
    Administrator Seth's Avatar
    Join Date
    Jul 2002
    Location
    Japan
    Posts
    5,340

    Default

    Hmm, different drives shouldn't be a problem, I have my sdk in C:\ but my Proton dir on O:\.

    It looks like the binary built just fine, it's just the final ant-based packing that is failing, hrm.

    Is anybody else successfully able to build Android projects with Proton?
    Seth A. Robinson
    Robinson Technologies

  5. #5

    Default

    After updating the sdk and reinstalling some stuff i got this:
    Code:
    -debug-obfuscation-check:
    
    -set-debug-mode:
    
    -compile-tested-if-test:
    
    -dirs:
         [echo] Creating output directories if needed...
        [mkdir] Created dir: D:\proton\RTBareBones\android\bin
        [mkdir] Created dir: D:\proton\RTBareBones\android\gen
        [mkdir] Created dir: D:\proton\RTBareBones\android\bin\classes
    
    -resource-src:
         [echo] Generating R.java / Manifest.java from the resources...
     [aapt.exe] D:\proton\RTBareBones\android\AndroidManifest.xml:2: error: No resou
    rce identifier found for attribute 'installLocation' in package 'android'
    
    BUILD FAILED
    D:\eclipse\android\tools\ant\main_rules.xml:310: null returned: 1
    
    Total time: 1 second
    can't find 'bin\RTBareBones-debug.apk' to install
    My SDK path is set as
    Code:
    sdk.dir=D:\\eclipse\\android
    I tried a lot of stuff already.. nothing seem to work. Also tried to use ANT build.xml but it returned an error..
    The .so lib is compiled, but ant seem to be pissing this off...

  6. #6

    Red face solution

    Finally found the issue.
    The new android ant build xml has some differences for the build step.
    On the project build xml replace:
    Code:
    classpathref="android.libraries.jars">
              <src path="${source.absolute.dir}" />
              <src path="../../shared/android/src" />
              <src path="${gen.absolute.dir}" />
              <src refid="android.libraries.src" />
    for:
    Code:
    classpathref="project.libraries.jars"> --change here
              <src path="${source.absolute.dir}" />
              <src path="../../shared/android/src" />
              <src path="${gen.absolute.dir}" />
              <src refid="project.libraries.src" /> --and here
    also i had to change this line:
    Code:
    <fileset dir="${external.libs.absolute.dir}" includes="*.jar" />
    to:
    Code:
    <fileset dir="./" includes="*.jar" />
    so it worked well with barebones...
    I wonder if this will work with the other examples..

  7. #7

    Default

    So, it works with the simpleApp too. I guess its success now.

  8. #8
    Administrator Seth's Avatar
    Join Date
    Jul 2002
    Location
    Japan
    Posts
    5,340

    Default

    Thanks for posting the solution!
    Seth A. Robinson
    Robinson Technologies

Similar Threads

  1. android build problem
    By stubtemple in forum Proton SDK
    Replies: 7
    Last Post: 06-15-2011, 09:16 PM
  2. Replies: 5
    Last Post: 02-21-2011, 10:54 PM
  3. Problem with changing package name on Android
    By Le Viet Bach in forum Proton SDK
    Replies: 2
    Last Post: 01-30-2011, 07:32 AM
  4. Android build error
    By Le Viet Bach in forum Proton SDK
    Replies: 1
    Last Post: 01-10-2011, 06:49 PM
  5. Failing Android build
    By rzuf in forum Proton SDK
    Replies: 1
    Last Post: 11-11-2010, 10:57 PM

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •