Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

Get Java.Lang.ClassNotFoundException on the out of box-project on Forms

$
0
0

I have an Indie account for Android only and wanted to try Forms for Android and iOS (and updated to iOS license also if Forms is what if hope and think it is).

So created my first Forms project and hit debug. Accidentally iOS project is set to start up project so that didn't go so well... Changed so the droid project is the start up and tried to debug that. But when it hit the
LoadApplication (new App ());
I get a Java.Lang.ClassNotFoundException
Didn't find class "xamarin.forms.platform.android.PlatformRenderer" on path: DexPathList[[zip file "data/app/my-projekt...... etc

What am I missing?

Update: Tried create a new project and set droid as start up directly with same result. Using Android Studio 5.9, guess that could be good to know :)

Update2: Guess I have to unload the iOS project since i only have Android license so the iOS doesn't build when I hit cmd+B. But my problem remains.

Update3: Downloaded samples, and the 'HelloXamarinFormsWorld.Android' use
SetPage(App.GetMainPage()); instead. This works, so what is the difference?
And why is project now named .Android (like example code here on xamrin site), but me default project have .droid?


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>