I am setting up a new build machine, and I had a couple of nightmarish android build issues that I thought I would share with everyone. Maybe it will help somebody else.
My second problem: once I got the app compiling, everything seemed fine, but when I launched the app, it crashed immediately with this message:
java.lang.UnsatisfiedLinkError: Library ti.admob not foundI took an old, working apk file and one of the newly built ones, used
unzip -t to list at the contents, then diff-ed the two lists. I saw that my working apk file had two .so files that were missing in the broken apk:
lib/armeabi/libti.admob.so lib/armeabi-v7a/libti.admob.soThe problem, it turns out, is that subversion had ignored my .so files when I checked the admob module into the repository. When I checked out the source onto the new machine, I had no .so files.
Obviously, this is an issue with subversion. But the issue with Titanium is that the compiler was unaware of the missing files, or at least, it did not present me with any sort of error. It happily built the apk, sans .so files.
Unzipping the modules again restored the .so files (and then I explicitly checked them into subversion so this won't happen next time!).
Your Answer
Think you can help? Login to answer this question!