This repository has been archived by the owner on Jul 5, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 358
[Android] Unhandled exception at application startup #226
Comments
delete bin and obj folders on Android project and rebuild it |
@pbielinski Thank you. That has indeed resolved the problem. |
Closed
thank you pbielinski |
Super, the solution is that delete bin and obj folders. Thanks pbielinski |
delete the bin and object folder that solve problem 100% |
I think it's mandatory as a xamarin developer to have a 'nuke' script which deletes all the solutions bin and obj folders :) |
|
ghost
mentioned this issue
Dec 3, 2018
Closed
@pbielinski |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Bug
Version Number of Plugin: 2.6.2
Compile using Android version: Use Latest Platform (Android 7.1 (Nougat))
Target Android version: Use Compile using SDK version
Device Tested On: Moto G4, Android 7.0 (build NPJ25.93-14)
Simulator Tested On: None
Expected Behavior
The application should start properly without errors when the plugin is installed and set up as per the instructions.
Actual Behavior
Upon starting the application, an unhandled Exception is raised when calling base.OnCreate(bundle) within MainActivity.OnCreate override:
Steps to reproduce the Behavior
xml
folder to the Resources folderfile_paths.xml
to the xml folderI am also using Prism.Forms with Unity within the application if that makes any difference, though the application does not get as far as creating the
App
class.MainActivity.OnCreate()
AndroidManifest.xml
file_paths.xml
I have found an article in the Xamarin forums indicating that the error is caused by the presence of any file within the
Resources/xml
folder. If I exclude this folder from the project then the application starts without issue leading me to believe that this is in fact the cause of the problem but there has been no reply within that forum post as to any workaround.The text was updated successfully, but these errors were encountered: