Xamarin android4.0.2 安卓门外汉,只想配置好一个能运行的版本,然后学习写点代码

[AndroidRuntime] Shutting down VM
[AndroidRuntime] FATAL EXCEPTION: main
[AndroidRuntime] java.lang.ExceptionInInitializerError
[AndroidRuntime] at java.lang.Class.newInstanceImpl(Native Method)
[AndroidRuntime] at java.lang.Class.newInstance(Class.java:1319)
[AndroidRuntime] at android.app.Instrumentation.newActivity(Instrumentation.java:1023)
[AndroidRuntime] at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1870)
[AndroidRuntime] at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1980)
[AndroidRuntime] at android.app.ActivityThread.access$600(ActivityThread.java:122)
[AndroidRuntime] at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1146)
[AndroidRuntime] at android.os.Handler.dispatchMessage(Handler.java:99)
[AndroidRuntime] at android.os.Looper.loop(Looper.java:137)
[AndroidRuntime] at android.app.ActivityThread.main(ActivityThread.java:4340)
[AndroidRuntime] at java.lang.reflect.Method.invokeNative(Native Method)
[AndroidRuntime] at java.lang.reflect.Method.invoke(Method.java:511)
[AndroidRuntime] at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
[AndroidRuntime] at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
[AndroidRuntime] at dalvik.system.NativeStart.main(Native Method)
[AndroidRuntime] Caused by: java.lang.UnsatisfiedLinkError: register
[AndroidRuntime] at mono.android.Runtime.register(Native Method)
[AndroidRuntime] at test7.MainActivity.(MainActivity.java:14)
[AndroidRuntime] ... 15 more
[Process] Sending signal. PID: 860 SIG: 9

2个回答

[AndroidRuntime] java.lang.ExceptionInInitializerError
初始化的问题

MainActivity.java:14第14行初始化出错,可能引用对象未定义……

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问