1
我試圖運行非常簡單的程序與啓動:UnityPlayerActivity的OnCreate錯誤
MainActivity extends UnityPlayerActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
但在上創建我得到這個錯誤:
04-02 09:38:39.227: E/AndroidRuntime(32578): Device fingerprint: samsung/GT-I9100/GT-I9100:4.1.2/JZO54K/I9100XWLSW:user/release-keys
04-02 09:38:39.227: E/AndroidRuntime(32578): Caused by:java.lang.ExceptionInInitializerError
04-02 09:38:39.227: E/AndroidRuntime(32578): at com.unity3d.player.UnityPlayerActivity.onCreate(Unknown Source)
04-02 09:38:39.227: E/AndroidRuntime(32578): at com.example.t.MainActivity.onCreate(MainActivity.java:17)
04-02 09:38:39.227: E/AndroidRuntime(32578): at android.app.Activity.performCreate(Activity.java:5206)
04-02 09:38:39.227: E/AndroidRuntime(32578): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1094)
04-02 09:38:39.227: E/AndroidRuntime(32578): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2074)
04-02 09:38:39.227: E/AndroidRuntime(32578): Caused by: java.lang.UnsatisfiedLinkError: Couldn't load main: findLibrary returned null
04-02 09:38:39.227: E/AndroidRuntime(32578): at java.lang.Runtime.loadLibrary(Runtime.java:365)
04-02 09:38:39.227: E/AndroidRuntime(32578): at java.lang.System.loadLibrary(System.java:535)
04-02 09:38:39.227: E/AndroidRuntime(32578): at com.unity3d.player.UnityPlayer.<clinit>(Unknown Source)
我使用編譯器1.6,把罐子 - 從統一文件夾中的classes.jar
什麼可能是錯的?