I seem to have lost my latest post again, so here it is, again:-
Hello truetom
I can't find any reference to apkbuilder.bat or dx.bat in your code or mine, unless that is in the "call apkbuilder' script.
A major difference is :-
Mine:-
call apkbuilder %APK_PROJECT_PATH%\bin\%APP_NAME%-unsigned.apk -v -u -z %APK_PROJECT_PATH%\bin\%APP_NAME%.ap_ -f %APK_PROJECT_PATH%\bin\classes.dex
Yours:-
call java -classpath %ANDROID_HOME%\tools\lib\sdklib.jar com.android.sdklib.build.ApkBuilderMain %APK_PROJECT_PATH%\bin\%APP_NAME%-unsigned.apk -v -u -z %APK_PROJECT_PATH%\bin\%APP_NAME%.ap_ -f %APK_PROJECT_PATH%\bin\classes.dex
Perhaps this is what you mean.
Another difference is:-
Mine:-
SET APK_SDK_PLATFORM=C:\Android\sdk\platforms\android-18
jdk1.6.0_45
Yours:-
SET APK_SDK_PLATFORM=C:\Android\sdk\platforms\android-8
jdk1.6.0_30
When downloading the sdk it only had -18, not -8, although it uses -8 in ndk platforms. They don't have the same folders in them so I assume this doesn't cause any errors. ndk r7 only goes up to android-14, so I standardized on -8 throughout (except sdk platform of course - that only had android-18). I use the latest jdk (perhaps this is a mistake!?).
Using your code I can now get androidlcltest-unsigned.apk but not androidlcltest.apk (but I don't really understand why). Is this right, or am I still missing something?
On examining the command prompt window in more detail, it says it can't find androidlcltest-unaligned.apk (and aapt is not internal or external command, still).
Hello zariq
Changing the line of code above has overcome one problem, but I can't find any file aapt.* in the sdk platform-tools folder or anywhere within the sdk (I've renamed the folder from android-sdk to sdk for a shorter path - I hope this doesn't upset anything). It also says:-
Could not find [path]androidlcltest.ap_ and [path]androidlcltest.apk but I thought it is the purpose of this batch file to build such a file. This is very strange,
Regards to both