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
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Build to Android device

Discussion in 'Editor & General Support' started by luckie12, Dec 31, 2017.

  1. luckie12

    luckie12

    Joined:
    Aug 17, 2014
    Posts:
    165
    Sorry if this isnt the right place to post it!


    Im trying to build my game to Android, i installed Android Studio, Installed Google USB Driver, Connected my phone, Enabled DEV Mode, Enabled USB Debugging, Installed Java JDK, Pointed Unity preferences to the SDK and the Java JDK,

    And im getting this error, when im building normal

    I found out that i have to use possibly Gradle 4.2.1

    Second, when i try to build and run to my phone im getting:



    But that might be because Gradle doesnt work at all.

    Thanks for any help, pretty stuck haha


    ~Luc
     
  2. Thalv

    Thalv

    Joined:
    May 18, 2016
    Posts:
    23
  3. luckie12

    luckie12

    Joined:
    Aug 17, 2014
    Posts:
    165
    I guess i placed this in the wrong forum section,

    anyway, i cant get to fix it, i downgraded JDK to 8 Update 151 now.... Android Studio 3.0.1


    But still Gradle Failed
     
  4. luckie12

    luckie12

    Joined:
    Aug 17, 2014
    Posts:
    165
    I found out the problem, but no solutions yet,

    I cant build the APK nor Run it when i have ADS enabled,

    i get this error:

    It already says
    So i disabled ADS en it worked, but i need the ads haha how do i make it work WITH ads?