UnityPlayerActivity会创建错误

时间:2015-04-02 06:46:59

标签: android unity3d

我正在尝试运行非常简单的程序,该程序以:

开头
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并从unity文件夹中获取jar - classes.jar

有什么不对?

1 个答案:

答案 0 :(得分:0)

我认为问题出现在清单中。 来here并按照说明操作!