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

Question Android Studio Build Immediate Fail - Is there an Android version issue that makes older code unabl

Discussion in 'Android' started by unity_xarzu, Oct 13, 2022.

  1. unity_xarzu

    unity_xarzu

    Joined:
    Dec 23, 2021
    Posts:
    12
    This example code was taken straight from github. I am confident that this code is supposed to build but I suspect something in the compiler of Android Studio has changed, updated, or with a newer version of the Android operating system something needs to be updated in the source code of an app. This is because a build and/or gradle sync has this error immediately. Nothing major has changed in the code. I suspect this might be a common thing and I suspect someone must know something about this and how to fix it. Please advise.


    Is there an Android version issue that makes older code unable to build?
     
  2. unity_xarzu

    unity_xarzu

    Joined:
    Dec 23, 2021
    Posts:
    12
    How Do I download Android Gradle Plugin 7.4?

    As I was making this post, this web forum times out and logged me out and all my work was lost. So I am going to save this as I type.

    For starters, Android Studio is dealing with two kinds of Gradle as seen in the Project Structure:




    Luckily, I found on the developer.android.com site, some information regarding the relationship between thest two things. https://developer.android.com/studio/releases/gradle-plugin?buildsystem=ndk-build#updating-gradle

    And, on this page, I found this table which tells me what version of the plug-in I need.



    So, where do I find this?