Search Unity

Game does not work on new Android Oreo

Discussion in 'Android' started by RaceCat, Aug 24, 2017.

  1. sorasu1942

    sorasu1942

    Joined:
    Apr 10, 2017
    Posts:
    4
    No. I tried it in environment more than Target SDK 22.
    I tested Target SDK 22, but stopped that I did Target SDK to 22 because existing application had been already made in 22 or more.

    I do not appoint Target SDK in AndroidManifest.xml.
     
  2. Voxel-Busters

    Voxel-Busters

    Joined:
    Feb 25, 2015
    Posts:
    1,967
    I'm still wondering what does this mean. Can you please clarify?
     
  3. sorasu1942

    sorasu1942

    Joined:
    Apr 10, 2017
    Posts:
    4
    (I could not translate well, sorry)

    You need to request permission before doing any processing that requires forgiveness like "android.permission.WRITE_EXTERNAL_STORAGE" or "android.permission.Camera".

    Since this problem is in the processing part of internal permission, we need to create processing on our own.
    (It is a plug-in or must be called from Unity C #)
     
  4. Voxel-Busters

    Voxel-Busters

    Joined:
    Feb 25, 2015
    Posts:
    1,967
    Ok Got it!

    No Problem :) Thanks for clarifying!
     
  5. PedroGV

    PedroGV

    Joined:
    Nov 1, 2010
    Posts:
    415
    My game has this issue:


    Problem: Crash of app com.takionstudios.zombieeez running instrumentation ComponentInfo{com.google.android.apps.mtaas.crawler/android.support.test.runner.AndroidJUnitRunner}

    On a Pixel phone with Android Oreo. Minimum API level 23. Target API level Automatic. IL2CPP. Fat. Prefer external.

    The build was done with 2017.1.2p2. Is there a fix planned for v2017.1.2p3+? Or will I have to upgrade the game's project to 2017.2?

    Thanks
     
    Last edited: Nov 2, 2017
  6. Yury-Habets

    Yury-Habets

    Unity Technologies

    Joined:
    Nov 18, 2013
    Posts:
    1,167
  7. PedroGV

    PedroGV

    Joined:
    Nov 1, 2010
    Posts:
    415
    Thanks for the info. I will try that workaround.
     
  8. Dark_Wizard123

    Dark_Wizard123

    Joined:
    Dec 14, 2016
    Posts:
    10
    This issue still persists with 2017.2.0B8. Can you guys please confirm when will you guys fix this bug in the latest unity release.
     
  9. JuliusM

    JuliusM

    Unity Technologies

    Joined:
    Apr 17, 2013
    Posts:
    836
    2017.2 is not in beta anymore, it was officially released nearly a month ago. To answer your question of when this issue was fixed, it happened in 2017.2.0b11, but please use final release versions instead of beta now.
     
  10. Dark_Wizard123

    Dark_Wizard123

    Joined:
    Dec 14, 2016
    Posts:
    10
    Thanks, Julius. I will give it a try and confirm.
     
  11. danygibsondd

    danygibsondd

    Joined:
    Dec 13, 2017
    Posts:
    1
  12. VRRehabInc

    VRRehabInc

    Joined:
    Nov 3, 2016
    Posts:
    5
    Still persists in 2017.3.0f1 even though it says it's been fixed...
    We specially design for Samsung and though they've not yet announced when they'll update S7 to Oreo, it's looming.
     
  13. Yury-Habets

    Yury-Habets

    Unity Technologies

    Joined:
    Nov 18, 2013
    Posts:
    1,167
    @SpencerMowrey what is it that persists?
    All known issues were fixed long ago.
    The description of your problem along with the logcat would be most helpful.
     
  14. AppDeveloperAnalytics

    AppDeveloperAnalytics

    Joined:
    Aug 15, 2017
    Posts:
    3
    hey i am using 5.6.3f1.having same issue.Any solution?? Please help
     
  15. JuliusM

    JuliusM

    Unity Technologies

    Joined:
    Apr 17, 2013
    Posts:
    836
    Please use the latest 5.6 release (currently it's 5.6.5). This issue was fixed in Unity 5.6.4 (see release notes here https://unity3d.com/unity/whats-new/unity-5.6.4 "Android : Fixed the issue of black screen on startup on Android Oreo devices").
     
  16. AppDeveloperAnalytics

    AppDeveloperAnalytics

    Joined:
    Aug 15, 2017
    Posts:
    3
    Thankx
     
  17. akashplaystoreapps2

    akashplaystoreapps2

    Joined:
    Feb 3, 2018
    Posts:
    1
    share button is not working in Oreo :(
     
  18. HeyNau

    HeyNau

    Joined:
    Aug 26, 2015
    Posts:
    10
    I am weekly checking this forum but Im a little bit lost with the comments.
    Is the android oreo issue solved already in any version?
    Can anyone tell me which versions are currently working with android oreo?
    Thank you.
     
  19. Yury-Habets

    Yury-Habets

    Unity Technologies

    Joined:
    Nov 18, 2013
    Posts:
    1,167
    Feel free to submit a bug report with a minimal repro project attached.
     
  20. Yury-Habets

    Yury-Habets

    Unity Technologies

    Joined:
    Nov 18, 2013
    Posts:
    1,167
    I'm not sure what is "the issue" in question, but it's been a long time since the fixes landed. Just make sure to use the latest patch release of the major version you prefer. (at best the latest 2017.3, of course)
     
  21. agdesignstudiogames

    agdesignstudiogames

    Joined:
    Feb 13, 2018
    Posts:
    1
  22. Yury-Habets

    Yury-Habets

    Unity Technologies

    Joined:
    Nov 18, 2013
    Posts:
    1,167
    Does not sound like a good advice to me. Investigate and find the issue.
     
  23. Jackie0212

    Jackie0212

    Joined:
    Mar 6, 2014
    Posts:
    2
    I was added "<uses-sdk android:targetSdkVersion="23" android:minSdkVersion="15"/>" in manifest.xml,
    it works fine on Android Oreo. Unity5.5.0p4
     
  24. aitzaz131

    aitzaz131

    Joined:
    Jul 9, 2015
    Posts:
    1
    I have solved the issue by installing "android sdk build-tools 25.0.1" from android sdk manager

    Hope that helps.
     
  25. dariuszpietrala

    dariuszpietrala

    Joined:
    Oct 5, 2012
    Posts:
    148
    So this is a Oreo's permissions issue. I want to publish a game to Gear VR, so changing default AndroidManifest to
    <meta-data android:name="unityplayer.SkipPermissionsDialog" android:value="true" />
    works fine. Running Unity 2017.1.0f3. What version should I try? Can I post the game with skipped permissions to Oculus store? Is there any fix, any settings I should change, something to add to the manifest? Should I go for the 2018.1?
     
  26. kaplica

    kaplica

    Joined:
    Feb 20, 2014
    Posts:
    87
    I'm on 5.6.3p2 and still getting black screen when on Oreo. Any ideas?
     
  27. dariuszpietrala

    dariuszpietrala

    Joined:
    Oct 5, 2012
    Posts:
    148
    I have a game built with 5.6.5f1. It works fine on Oreo.
     
    Deleted User likes this.
  28. kaplica

    kaplica

    Joined:
    Feb 20, 2014
    Posts:
    87
    Is there a way to debug what's causing it?
     
  29. dariuszpietrala

    dariuszpietrala

    Joined:
    Oct 5, 2012
    Posts:
    148
  30. Hassanarshad1993

    Hassanarshad1993

    Joined:
    Aug 19, 2017
    Posts:
    1
    Yes I am facing the same issue on 5.6.2
     
  31. peeyush_unity

    peeyush_unity

    Joined:
    Nov 9, 2017
    Posts:
    1
    Yury-Habets
    Hello,

    We have a legacy project going on and its in 5.2.5f and we can not update unity version. Android build is not working on oreo 8 and a blank black screen shown at the launch. When debugging it shows some permission issues.
    "04-04 16:02:06.858 25011 25011 E Unity : Unable to query for permission: Fragment null must be a public static class to be properly recreated from instance state.
    04-04 16:02:07.128 773 931 I ActivityManager: Displayed com.learndirectenglish.lde/com.unity3d.player.UnityPlayerNativeActivity: +4s283ms
    "
    I got to know that this is a common problem but unity is not giving support for older versions. Please release a support for unity 5.2.5f as we are paying you for unity plus. You can not withdraw support like that. Please release a patch for unity 5.2.5.
     
  32. kaplica

    kaplica

    Joined:
    Feb 20, 2014
    Posts:
    87
    Yes I am getting the same error...

    Unable to query for permission: Fragment null must be a public static class to be properly recreated from instance state.

    Looks like it hasn't been fixed
     
  33. Yury-Habets

    Yury-Habets

    Unity Technologies

    Joined:
    Nov 18, 2013
    Posts:
    1,167
    It has been fixed. You should use the latest available patch release of your version.
     
  34. jowin4ever

    jowin4ever

    Joined:
    Jul 9, 2017
    Posts:
    5
    where I should find ? Existing I use 5.6.3f. I won't go anywhere. Because Im affraid If I change / upgrade version my script will broken
     
  35. JuliusM

    JuliusM

    Unity Technologies

    Joined:
    Apr 17, 2013
    Posts:
    836
  36. jowin4ever

    jowin4ever

    Joined:
    Jul 9, 2017
    Posts:
    5
    Yes thank you, yesterday i tried to upgrade 5.6.5f1 and no problem. Thank you all
     
    Yury-Habets likes this.
  37. Deleted User

    Deleted User

    Guest

    I have a problem with playing video on car plane not showing on oreo.
     
  38. JuliusM

    JuliusM

    Unity Technologies

    Joined:
    Apr 17, 2013
    Posts:
    836
    Hi, this is a totally different and unrelated issue to the one discussed in this thread. Please submit a bug report and provide a minimal project so we can reproduce it as well. After that you could paste the case number (seven digits) here.
     
  39. nehabaluni

    nehabaluni

    Joined:
    Jan 18, 2018
    Posts:
    2
  40. mrm83

    mrm83

    Joined:
    Nov 29, 2014
    Posts:
    345
    Is this fix available for Unity 5.3?
     
  41. SmartDeveloper

    SmartDeveloper

    Joined:
    Apr 23, 2013
    Posts:
    10
    JuliusM

    We are facing Black Screen problem on Android 8 and Our projects are in Unity4.7.2 and we cannot upgrade these projects to Unity 5 because the Physics is completely different in Unity 5 specially Vehicle Physics. So kindly release some patch for Unity 4.7.2 we will pay for this patch.

    And it is impossible to upgrade our projects to Unity 5 due to physics changes. Our Games will get finished from Google Play and at last we will leave Unity Engine forever. Kindly discuss this issue with Unity Developers and release just one update or some patch for Unity4.7.2.
     
    Last edited: Jun 19, 2018
  42. SmartDeveloper

    SmartDeveloper

    Joined:
    Apr 23, 2013
    Posts:
    10
    We are facing Black Screen problem on Android 8 and Our projects are in Unity4.7.2 and we cannot upgrade these projects to Unity 5 because the Physics is completely different in Unity 5 specially Vehicle Physics. So kindly release some patch for Unity 4.7.2 we will pay for this patch.

    And it is impossible to upgrade our projects to Unity 5 due to physics changes. Our Games will get finished from Google Play and at last we will leave Unity Engine forever. Kindly discuss this issue with Unity Developers and release just one update or some patch for Unity4.7.2.
     
  43. Paras-Mehta

    Paras-Mehta

    Joined:
    Mar 28, 2017
    Posts:
    4
    I tried to make a build for Android 8.0 android device using Unity versions 2017.2.0f3 and 2017.3.1f1, it was working fine, but when i tried to do the same with Unity 2018.1.5 and 2018.1.0, they were showing the black screens only. Can @Yury-Habets @JuliusM @levaUnity any one of you please tell which is the latest version which has this issue fixed
     
  44. Yury-Habets

    Yury-Habets

    Unity Technologies

    Joined:
    Nov 18, 2013
    Posts:
    1,167
    I'm not sure what you mean by "this issue", but the black screen in Oreo is gone long ago.
     
  45. AKComp

    AKComp

    Joined:
    Aug 22, 2014
    Posts:
    26
    Okey i was download last version patch, and this error solved!
     
    Last edited: Jun 25, 2018
    Yury-Habets likes this.
  46. taijia

    taijia

    Joined:
    Jun 28, 2018
    Posts:
    1
    Is this fix available for Unity 5.3.6?I mean do you have plans to fixed for 5.3.6?
     
  47. MuzzleStudio

    MuzzleStudio

    Joined:
    Feb 22, 2017
    Posts:
    2
    ・Finally Add follows in AndroidManifest.xml
    <meta-data android:name="unityplayer.SkipPermissionsDialog" android:value="true" />

    solved my issue of White screen on Android 8.0
     
  48. Yury-Habets

    Yury-Habets

    Unity Technologies

    Joined:
    Nov 18, 2013
    Posts:
    1,167
    Which version of Unity are you using?
     
  49. hameed-ullah-jan

    hameed-ullah-jan

    Joined:
    Sep 24, 2014
    Posts:
    7
    I removed this permission from the manifest, and now it is working fine on android 8
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
     
  50. komal2992

    komal2992

    Joined:
    Dec 22, 2015
    Posts:
    1
    Yes, I'm getting same experience in my Android phone, while update new Android oreo the Black screen comes. I am looking forward for the solution of this error.

    Thanks!