这个:
07-18 04:26:30.696: W/dalvikvm(379): threadid=17: thread exiting with uncaught exception (group=0x4001aa28)
07-18 04:26:30.705: E/AndroidRuntime(379): Uncaught handler: thread Thread-9 exiting due to uncaught exception
07-18 04:26:30.776: E/AndroidRuntime(379): java.lang.ExceptionInInitializerError
07-18 04:26:30.776: E/AndroidRuntime(379): at com.drodin.tuxrider.Installer.InstallFiles(Installer.java:54)
07-18 04:26:30.776: E/AndroidRuntime(379): at com.drodin.tuxrider.Installer$1.run(Installer.java:41)
07-18 04:26:30.776: E/AndroidRuntime(379): at java.lang.Thread.run(Thread.java:1060)
07-18 04:26:30.776: E/AndroidRuntime(379): Caused by: java.lang.UnsatisfiedLinkError: Library tuxrider not found
07-18 04:26:30.776: E/AndroidRuntime(379): at java.lang.Runtime.loadLibrary(Runtime.java:489)
07-18 04:26:30.776: E/AndroidRuntime(379): at java.lang.System.loadLibrary(System.java:557)
07-18 04:26:30.776: E/AndroidRuntime(379): at com.drodin.tuxrider.NativeLib.<clinit>(NativeLib.java:33)
07-18 04:26:30.776: E/AndroidRuntime(379): ... 3 more
具体来说:
at com.drodin.tuxrider.Installer.InstallFiles(Installer.java:54)
因为这:
07-18 04:26:30.776: E/AndroidRuntime(379): Caused by: java.lang.UnsatisfiedLinkError: Library tuxrider not found)
它似乎正在寻找您的项目中没有的库,或者您的项目中可能有它,但您没有链接它;缺少的东西。
在属性下检查 Java 构建路径选项卡,确保在“订购和导出”下检查私有库,同时确保你的 libs 文件夹中有任何必要的东西......
编辑:根据这个问题为 Tux Rider Android 构建 JNI Lib, GoogleAds API 似乎存在问题
注释掉 MainActivity 中的所有 GoogleAds 代码。