Hi,
I did that and it worked on the source stub when used in eclipse. I expected it to work when moved to netbeans and zipped the entire android project library and saved it ending in .andlib imside the native folder for android in the codenameone netbeans project.
Regards.
Hi,
Let me explain further, lets say you have a codenameone project and you need some sepecific native functionality on Android. You head to eclipse and create an Android Library Project that implements this functionality with a .so file. In addition you apply some styles/drawables and you test it and all is working fine. You head back to codenameone netbeans project and generate the native stub to bridge. Afterwhich you now send a build to the server and check include sources. The sources are now generated. You open it up in eclipse and link it to the android library project, update the manifest and all works fine. With this, your android native library project has proven to work fine. Now, you zip the entire android library project from the root folder and save it in a file name ending with .andlib. you put this file ajacent to the native stub in the android native directory of the codename one project e.g native/android/mobolib.andlib. Update the build hints to add the android.xapplication with the value of the activity in the library. Then off you go to the build server. Your expectation is that this should work as it did on the eclipse. But it fails with the new error:
Executing:
/home/ec2-user/android-sdk/tools/android create project --target android-15
--name Main --path /tmp/build855721304908947123xxx/Main --activity MainStub
--package com.mobocredit Created directory
/tmp/build855721304908947123xxx/Main/src/com/mobocredit
Added file
/tmp/build855721304908947123xxx/Main/src/com/mobocredit/MainStub.java
Created directory /tmp/build855721304908947123xxx/Main/res
Created directory /tmp/build855721304908947123xxx/Main/bin
Created directory /tmp/build855721304908947123xxx/Main/libs
Created directory /tmp/build855721304908947123xxx/Main/res/values
Added file /tmp/build855721304908947123xxx/Main/res/values/strings.xml
Created directory /tmp/build855721304908947123xxx/Main/res/layout
Added file /tmp/build855721304908947123xxx/Main/res/layout/main.xml
Created directory /tmp/build855721304908947123xxx/Main/res/drawable-hdpi
Created directory /tmp/build855721304908947123xxx/Main/res/drawable-mdpi
Created directory /tmp/build855721304908947123xxx/Main/res/drawable-ldpi
Added file /tmp/build855721304908947123xxx/Main/AndroidManifest.xml
Added file /tmp/build855721304908947123xxx/Main/build.xml
Added file /tmp/build855721304908947123xxx/Main/proguard-project.txt
Executing: /home/ec2-user/android/ant/bin/ant debug Buildfile: /tmp/build855721304908947123xxx/Main/build.xml
-set-mode-check:
-set-debug-files:
-check-env:
[checkenv] Android SDK Tools Revision
22.2.1
[checkenv] Installed at
/home/ec2-user/android-sdk
-setup:
[echo] Project Name: Main
[gettype] Project Type: Application
-set-debug-mode:
-debug-obfuscation-check:
-pre-build:
-build-setup:
[getbuildtools] Using latest Build Tools: 18.1.1
[echo] Resolving Build Target for
Main...
[gettarget] Project Target: Android
4.0.3
[gettarget] API level: 15
[echo] ----------
[echo] Creating output directories
if needed...
[mkdir] Created dir:
/tmp/build855721304908947123xxx/Main/bin/res
[mkdir] Created dir:
/tmp/build855721304908947123xxx/Main/bin/rsObj
[mkdir] Created dir:
/tmp/build855721304908947123xxx/Main/bin/rsLibs
[mkdir] Created dir:
/tmp/build855721304908947123xxx/Main/gen
[mkdir] Created dir:
/tmp/build855721304908947123xxx/Main/bin/classes
[mkdir] Created dir:
/tmp/build855721304908947123xxx/Main/bin/dexedLibs
[echo] ----------
[echo] Resolving Dependencies for
Main...
BUILD FAILED
/home/ec2-user/android-sdk/tools/ant/build.xml:577: /dependency/src/ resolve to
a path with no project.properties file for project
/tmp/build855721304908947123xxx/Main
Total time: 1 second
of which in the library there exist a project.properties file
Regards