- Home /
Question by
DontShooot · Aug 06, 2015 at 06:51 AM ·
androidmobilecrashandroidplugin
NoClassDefFoundError exception when using Android plugin
I'm trying to figure out how to create my own android plugins for Unity. I've started with a simple plugin, but the application crashes on start.
FATAL EXCEPTION: main
Process: com.bla.app, PID: 17962
java.lang.Error: FATAL EXCEPTION [main]
Unity version : 5.1.2f1
Device model : samsung GT-I9195
Device fingerprint: samsung/serranoltexx/serranolte:4.4.2/KOT49H/I9195XXUCNK4:user/release-keys
Caused by: java.lang.NoClassDefFoundError: com.bla.app.R$layout
at com.bla.app.MainActivity.onCreate(MainActivity.java:14)
at android.app.Activity.performCreate(Activity.java:5458)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1093)
I can't understand what's wrong with R$Layout, can anybody help?
Comment