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

"App not installed" on (almost) all devices I tried

Discussion in 'Android' started by backnot1, Jan 13, 2020.

  1. backnot1

    backnot1

    Joined:
    Jan 12, 2020
    Posts:
    3
    Hi, I made a very simple 2d game for android. Build was success with 0 errors. I uploaded the .apk file to my google drive. From there I downloaded it to my HUAWEI P8-LITE old phone. I'm using Android 6.0 on it.
    Everythings works great on my phone.

    I've downloaded it again to a LENOVO tablet with Android 9.0 on it. I got "App not installed" error with nothing else. It's driving me insane. I tried several Android emulators. On every single one of them I got "App not installed" error. On one of them I got something like "Your phone is not compatible" beside the other error and that's it.

    It works only on my phone.

    Things I've tried:
    • Googling
    • Turn off Play Protect (from Google Play)
    • Allow apps from untrusted sources
    • Cleaning more free space
    • Setting "Install Location" to Automatic (from Player settings)
    • Downloading/importing the .apk from somewhere else
    • Setting Android 9.0 as a Target version
    • Checked ARMv7 too as a Target architecture
    Does anyone know something, that might help me?
     
    Last edited: Jan 13, 2020
  2. backnot1

    backnot1

    Joined:
    Jan 12, 2020
    Posts:
    3
    After a long time wondering and playing with the settings I think its working now. Here are some of my options in the Player settings:

    Scripting backend: IL2CPP
    Api compatibility level: .NET Standard 2.0
    Target Architectures: ARMv7, ARM64, x86 (deprecated).
    Install location: Automatic
    Write Permission: Internal

    Beside the things I've written in the question I also checked all three architectures as targets (even the deprecated one). I've connected the tablet with USB in order to use Build and Run option and didn't see any error (when I later changed target architectures a error told me that I should target ARMv7 too) and everything worked as expected.

    I later uploaded it to my drive again and installed it from there too.

    I've tried & tested in emulators too (I think the deprecated architecture is used).
     
  3. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,682
    Lenovo tablet probably runs Intel CPU, thus if you download app from google play store, the app needs to support x86 and x64 architectures, Unity doesn't support x64 Intel architecture, only x86 was supported which was deprecated due fact there's a very little percentage of Intel android devices.

    So in short with latest Unity, only ARM based Android devices are supported

    Hope that helps.
     
    backnot1 likes this.
  4. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    Try installing via "adb install myfile.apk" or just Build and Run from Unity (phone attached via USB and developer options enabled)
     
  5. parigha12

    parigha12

    Joined:
    Dec 10, 2019
    Posts:
    4
    set your java_home enviroment variable