Hi, is it possible with cocos2dx, create the apk after ./bild_native.sh with
>ant debug
???
because I compiled correctly, but I don’t created the file apk for the device…
Is is possible only with Eclipse?
I have try use ‘ant debug’ with another native engine, and works fine…
my errors is:
iMac:proj.android smartmind$ ./build_native.sh
…
Install : libhellocpp.so => libs/armeabi/libhellocpp.so
make: Leaving directory `/Users/smartmind/Works/Smallthing/cocos2d-x/samples/HelloCpp/proj.android’
iMac:proj.android smartmind$ ant debug
Buildfile: /Users/smartmind/Works/Smallthing/cocos2d-x/samples/HelloCpp/proj.android/build.xml
BUILD FAILED
/Users/smartmind/Works/Smallthing/cocos2d-x/samples/HelloCpp/proj.android/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
Total time: 0 seconds
iMac:proj.android smartmind$
OK, I have resolved the problem with this syntax:
ant Dsdk.dir=$ANDROID_HOMEDtarget=android-16 debug
I have a OS Lion with, last Android SDK and NDK r8.
Regards!
Stefano
Stefano Campodall’Orto wrote:
Hi, is it possible with cocos2dx, create the apk after ./bild_native.sh with
>
>ant debug
>
>
???
>
because I compiled correctly, but I don’t created the file apk for the device…
Is is possible only with Eclipse?
I have try use ‘ant debug’ with another native engine, and works fine…
>
my errors is:
>
iMac:proj.android smartmind$ ./build_native.sh
…
Install : libhellocpp.so => libs/armeabi/libhellocpp.so
make: Leaving directory `/Users/smartmind/Works/Smallthing/cocos2d-x/samples/HelloCpp/proj.android’
iMac:proj.android smartmind$ ant debug
Buildfile: /Users/smartmind/Works/Smallthing/cocos2d-x/samples/HelloCpp/proj.android/build.xml
>
BUILD FAILED
/Users/smartmind/Works/Smallthing/cocos2d-x/samples/HelloCpp/proj.android/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
>
Total time: 0 seconds
iMac:proj.android smartmind$
I encountered this error running the new v3.0beta. Thank you for posting the solution.