Search Unity

Weird Android Build Error

Discussion in 'Scripting' started by SebastianMaj, Feb 15, 2018.

  1. SebastianMaj

    SebastianMaj

    Joined:
    Nov 28, 2013
    Posts:
    113

    Hello, so I recently began work on an android project but each time I try to build I get the error above.

    Assets:
    - Chartboost
    - Admob
    - IAP
    - Ads

    Solutions I tried but didn't work:
    - Remove admob
    - Move folder to C drive
    - Updated Android SDK and JDK
    - Updated Google play games addon

    Any help will be much appreciated!

    Thanks!
     
  2. Simpso

    Simpso

    Joined:
    Apr 20, 2015
    Posts:
    158
    Do you get a pop up also along the lines of android device not found?
    I get this a lot since upgrading my phone to a Samsung s8.
    Usually if I leave it plugged in for 10 mins, it picks the phone up and the errors vanish.
    Have you tried just building to your pc to make sure its not an actual build error unrelated to android?
     
  3. SebastianMaj

    SebastianMaj

    Joined:
    Nov 28, 2013
    Posts:
    113
    Hey, Yea I am building the apk to a folder on my pc rather than building and running. In the build screenshot I posted above I was also building to pc which is weird why I have that error.
     
  4. Brathnann

    Brathnann

    Joined:
    Aug 12, 2014
    Posts:
    7,188
    Are you saving your apk outside your project folder?
     
  5. SebastianMaj

    SebastianMaj

    Joined:
    Nov 28, 2013
    Posts:
    113
    I usually build into builds folder in the project folder (not assets folder). I just tried to save it elsewhere and still no luck.
     
  6. Brathnann

    Brathnann

    Joined:
    Aug 12, 2014
    Posts:
    7,188
    That's not an error I recognize from doing android builds, so maybe copy the error and post it here.

    There is also an Android sub forum that you might have better luck with since this is the scripting part of the forum.
     
  7. SebastianMaj

    SebastianMaj

    Joined:
    Nov 28, 2013
    Posts:
    113
    Issue fixed, I had ended up moving the folder location, then installing a different version of jdk and also changing target version of the project android and it was all good.