Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Android build and Theme.AppCompat

Discussion in 'Android' started by AG_VR, Apr 18, 2018.

  1. AG_VR

    AG_VR

    Joined:
    Dec 19, 2017
    Posts:
    5
    Hi everyone,

    I'm trying to make my game be considered by GooglePlay for featuring and I get this message back :
    "The app is using visual elements from older platforms in some areas (for example Gingerbread or Holo visual elements on Android 5.0+ devices). On Android 5.0+, all activities must inherit Theme.AppCompat, Theme.Material, or one of their descendants. All UI elements must use styles from the Material/AppCompat palette (e.g. Widget.Material…, Widget.AppCompat... or ?android:attr/...)."

    Damned...

    I have imported "com.android.support.appcompat-v7-25.3.1" in my project to be able to use Theme.AppCompat style.
    But when I change my manifest line from :
    <application android:theme="@android:style/Theme.NoTitleBar.Fullscreen" android:icon="@drawable/app_icon" android:label="@String/app_name" android:debuggable="true">
    to :
    <application android:theme="@android:style/Theme.AppCompat.NoTitleBar.Fullscreen" android:icon="@drawable/app_icon" android:label="@String/app_name" android:debuggable="true">

    I'm unable to build anymore...

    Did I miss something ?

    PS : I found this link but the code is no more visible : https://blogs.unity3d.com/2015/07/16/android-themes-in-unity/

    Any help will be appreciate :)
     
  2. unity_hBG2VIYht9IS1g

    unity_hBG2VIYht9IS1g

    Joined:
    Aug 17, 2018
    Posts:
    1
    Hi AG_VR,

    Were you able to address this issue? We are having same problem for Google Featuring...
     
  3. higor_funkids

    higor_funkids

    Joined:
    Oct 29, 2018
    Posts:
    1
    Hello!

    Have you guys found a solution for this?
     
  4. Lad-Ty

    Lad-Ty

    Joined:
    May 7, 2013
    Posts:
    53
    This, this, so much of this :(
     
  5. wicea

    wicea

    Joined:
    Jan 23, 2016
    Posts:
    18
    I fixed same issue with modifying AndroidManifest.xml file.
    Tested with Unity 2019.1.14f1.

    Change this line

    Code (JavaScript):
    1. <application android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
    to

    Code (JavaScript):
    1. <application android:theme="@style/UnityThemeSelector"
     
    xaldin-76 likes this.