Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
0
Question by jackblue2009 · Jan 13, 2017 at 06:36 PM · androidunity 5crashes

[HELP] Unity 5.5 Android build crashes at startup

Hello, I have a built an apk game for Android. I am using Unity 5.5 and my minimum API level is set to (Android 2.3.1 'Gingerbread') (API level 9). Anyway when I copy the apk app to my mobile (HUAWEI GRA-UL00) and open it, it loads for a couple of seconds then immediately crashes.

Some details of the phone:
EMUI version: EMUI 3.1
Android version: 5.0.1
Kernel version: 3.10.61-geb4b1e7 android@localhost #2 Wed Dec 9 03:59:12 CST 2015
Baseband version: 21.293.25.00.000,21.239.25.00.000

Intended Scenario:
I want the game to run on my phone without any problems that cause it to crashes immediately at startup.

Methods Implemented:
- I checked the (Protect Graphics Memory) in the Player Settings as I found it from external sources it solved the problem for some others, however the problem still persists after I implemented this method.
- I tried changing maybe couple of lines in the Android Manifests file but it did not help.

This is a log from the adb I opened while trying to open the app on my phone:

 I/ActivityManager( 3361): Displayed com.Blue_Factory_Games.Run_Kid/com.unity3d.player.UnityPlayerActivity: +293ms
 E/Unity   (13096): Unable to find AudioPluginMsHRTF
 E/Unity   (13096): Unable to find AudioPluginOculusSpatializer
 I/Unity   (13096): Building GPG services, implicitly attempts silent auth
 I/Unity   (13096):
 I/Unity   (13096): (Filename: ./artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)
 I/Unity   (13096):
 I/ActivityManager( 3361): filter receiver for action = android.net.wifi.SCAN_RESULTS
 I/Unity   (13096):  [Play Games Plugin DLL] 01/13/17 17:33:20 +03:00 DEBUG: Activating PlayGamesPlatform.
 I/Unity   (13096):
 I/Unity   (13096): (Filename: ./artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)
 I/Unity   (13096):
 I/Unity   (13096):  [Play Games Plugin DLL] 01/13/17 17:33:20 +03:00 DEBUG: Instance was not initialized, using default configuration.
 I/Unity   (13096):
 I/Unity   (13096): (Filename: ./artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)
 I/Unity   (13096):
 I/Unity   (13096):  [Play Games Plugin DLL] 01/13/17 17:33:20 +03:00 DEBUG: PlayGamesPlatform activated: GooglePlayGames.PlayGamesPlatform
 I/Unity   (13096):
 I/Unity   (13096): (Filename: ./artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)
 I/Unity   (13096):
 I/Unity   (13096):  [Play Games Plugin DLL] 01/13/17 17:33:20 +03:00 DEBUG: Creating platform-specific Play Games client.
 I/Unity   (13096):
 I/Unity   (13096): (Filename: ./artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)
 I/Unity   (13096):
 I/Unity   (13096):  [Play Games Plugin DLL] 01/13/17 17:33:20 +03:00 DEBUG: Creating Android IPlayGamesClient Client
 I/Unity   (13096):
 I/Unity   (13096): (Filename: ./artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)
 I/Unity   (13096):
 I/ActivityManager( 3361): filter receiver for action = android.intent.action.DROPBOX_ENTRY_ADDED
 I/ActivityManager( 3361): filter receiver for action = com.huawei.android.action.AUTO_UPDATE_MYLOCATION
 I/ActivityManager( 3361): filter receiver for action = com.huawei.android.action.AUTO_UPDATE_MYLOCATION
 I/ActivityManager( 3361): filter receiver for action = android.net.wifi.SCAN_RESULTS



This is a copy from the Android Manifest file:

 <?xml version="1.0" encoding="utf-8"?>
 <!--
 This Google Mobile Ads plugin library manifest will get merged with your
 application's manifest, adding the necessary activity and permissions
 required for displaying ads.
 -->
 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
     package="com.Blue_Factory_Games.Run_Kid"
     android:versionName="1.0"
     android:versionCode="1">
   <uses-sdk android:minSdkVersion="9"
       android:targetSdkVersion="19" />
   <!-- Google Mobile Ads Permissions -->
   <uses-permission android:name="android.permission.INTERNET"/>
   <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
   <!-- Uncomment to add billing for in-app purchase ads -->
   <!--<uses-permission android:name="com.android.vending.BILLING"/> -->
   <application>
     <!-- Denote the referenced Google Play services version -->
     <meta-data android:name="com.google.android.gms.version"
         android:value="@integer/google_play_services_version" />
     <!-- Google Mobile Ads Activity -->
     <activity android:name="com.google.android.gms.ads.AdActivity"
         android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"
         android:theme="@android:style/Theme.Translucent" />
     <!-- InAppPurchase Activity -->
     <activity android:name="com.google.android.gms.ads.purchase.InAppPurchaseActivity"
         android:theme="@style/Theme.IAPTheme"/>
 
     <activity android:name="com.unity3d.player.UnityPlayerNativeActivity"
         android:label="@string/app_name">
         <intent-filter>
             <action android:name="android.intent.action.MAIN" />
             <!-- <category android:name="android.intent.category.LAUNCHER" /> -->
         </intent-filter>
         <meta-data android:name="unityplayer.UnityActivity" android:value="true" />
         <meta-data android:name="unityplayer.ForwardNativeEventsToDalvik"
             android:value="true" />
     </activity>
   </application>
 </manifest>



I would really appreciate the help finding a solution as it has become really frustrating for a couple of day now.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by jackblue2009 · Jan 15, 2017 at 10:47 AM

After a long couple days of headaches and frustration and testing, the problem turned out to be in the "MenuScript.cs" that is attached to the (MenuManager) in my start scene. When I disabled the script component in the game object, and ran the game again on my phone, it didn't crash.

Also I would like to point out that it crashed in the end screen (which is the game over scene) probably because I have a similar script to the "MenuScript.cs" there.

In conclusion, this was the problem for me as to why it was crashing on mobile.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image orrinjones · Sep 06, 2017 at 09:53 PM 0
Share

you should have pointed out what you were doing in that script.. :/

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

173 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

jni error has occurred local reference table overflow (max=512) Android crashes on start. 1 Answer

My first game published made with unity 0 Answers

Unity + android 4.0.3 black screen issue 1 Answer

voice recognition 2 Answers

Android game updater (autopatch) 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges