Forum Xamarin.Android
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

template app in VS 2015 , cross platform, blank shared forms, crashes

I am starting my first cross platform app using the Xamarin controls. Visual Studio community version, just download Xamarin libraries.

the template app for a blank forms app compiles and runs but crashes in some callback
all the resources look properly defined.. again this the template app with no code of my own.
all the MainActivity.onCreate() and app.onCreate() code have completed, and sometime later this occurs. (milliseconds overall)

11-27 08:25:57.522 E/AndroidRuntime( 4404): android.content.res.Resources$NotFoundException: Unable to find resource ID #0x1
11-27 08:25:57.522 E/AndroidRuntime( 4404): at android.content.res.Resources.getResourceName(Resources.java:2235)
11-27 08:25:57.522 E/AndroidRuntime( 4404): at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1059)
11-27 08:25:57.522 E/AndroidRuntime( 4404): at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1252)
11-27 08:25:57.522 E/AndroidRuntime( 4404): at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:742)
11-27 08:25:57.522 E/AndroidRuntime( 4404): at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1617)
11-27 08:25:57.522 E/AndroidRuntime( 4404): at android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:517)
11-27 08:25:57.522 E/AndroidRuntime( 4404): at android.os.Handler.handleCallback(Handler.java:739)
11-27 08:25:57.522 E/AndroidRuntime( 4404): at android.os.Handler.dispatchMessage(Handler.java:95)
11-27 08:25:57.522 E/AndroidRuntime( 4404): at android.os.Looper.loop(Looper.java:148)
11-27 08:25:57.522 E/AndroidRuntime( 4404): at android.app.ActivityThread.main(ActivityThread.java:5417)
11-27 08:25:57.522 E/AndroidRuntime( 4404): at java.lang.reflect.Method.invoke(Native Method)
11-27 08:25:57.522 E/AndroidRuntime( 4404): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
11-27 08:25:57.522 E/AndroidRuntime( 4404): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
11-27 08:25:57.587 D/Mono ( 4404): [0x9afbf930] hill climbing, change max number of threads 3

Best Answer

Answers

  • BerayBentesenBerayBentesen TRUniversity ✭✭✭✭

    @samdetweiler you better report bug over bugzilla

  • samdetweilersamdetweiler USMember ✭✭

    thanks.. just checking to see if it s a bug or user error.. I think user error..

    we have the xaml page definition and some code in the generic 'app'.. something didn't have an 'id'.. comment out the app code and the missing resource goes away,., but the app crashes on close.. will post more when I figure it out..

Sign In or Register to comment.