Search Issue Tracker
Fixed in 5.3.6
Votes
1
Found in
5.3.0f2
Issue ID
751102
Regression
No
[Android] Crash on instantiating UnityPlayer without Activity
Crash on instantiating UnityPlayer without Activity
Steps to repro:
1) Create an new Unity project
2) Switch platform to Android
3) Enable "Google Android Project".
4) Export the project and import it to Android Studio or Eclipse
5) Build it and launch on the device. It should start normally.
6) Open UnityPlayerActivity.java and change this line
mUnityPlayer = new UnityPlayer(this);
into
mUnityPlayer = new UnityPlayer(this.getApplication());
7) Build the project now and try to launch it on the device now. The application will crash with the error message as one above.
Tested with Unity Version 5.3.0f3 (fdc0acad47d2)
Tue, 01 Dec 2015 19:16:49 GMT
Branch: 5.3/release
Logcats are attached.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- GameObject movement in Scene view becomes stuttery and intermittently freezes when using non-standard pointers across editor tabs or window boundaries
- Addressables.CheckForCatalogUpdates() always returns 0 when "Only update catalogs manually" is enabled
- VFX Graph forces a lengthy recompilation freeze when exiting Play Mode with a cloned Render Pipeline asset
- Project Auditor's "Install Rules" button has to be pressed twice to proceed when any compilation error in the Editor is present
- Crash on Scripting::UnityEngine::SubsystemManagerProxy::ClearSubsystems when adding a Mesh Collider Component to a GameObject
Add comment