When I launch my game on my android device it crashes. On the unity editor everything works fine.
So I used Android Monitor to see the logs but I'm confused. Where should I look for the source of the error ? I have no clue.
Answer by liortal
5 days ago
Are you calling native Android (Java) code from your game using AndroidJavaObject or AndroidJavaClass? you may be passing in the wrong parameters in your call, which is causing this crash.
It's quite difficult to understand from this crash stack trace, it would help if you posted some of your code.
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a site navigation guide.
If you are a new user to Unity Answers, check out our FAQ for more information.
Make sure to check out our Knowledge Base for commonly asked Unity questions.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
Answers and Comments
4 People are following this question.
CommandInvokationFailure: Failed to re-package resources.
StreamingAssets Folder Max Size
Cant find android SDK root folder when first trying to build for android
How to port game on android wear ?
Unity2D quads not appearing in front of other quads in Android build