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. Dismiss Notice

Lint Infrastructure Error on build

Discussion in 'Editor & General Support' started by Kiesco91, Apr 9, 2020.

  1. Kiesco91

    Kiesco91

    Joined:
    Aug 20, 2018
    Posts:
    80
    hi all,

    so I'm trying to build my APK and it gets all the way to the "building Gradle" part and just fails. I have searched and searched for a solution but I just can't find anything at all. I've updated android studio and SDK, i've uninstalled and reinstalled different versions of unity and nothing.

    i'm currently using Unity 2019.3.8f1 and the recommended SDK JDK and NDK's from the unity hub. its throwing up 290 errors in the console but I have no idea what else I need to do!
     
  2. koushiknaik

    koushiknaik

    Joined:
    Apr 10, 2020
    Posts:
    5
    Same here lmao
    If you get answers please let me know I also trying so hard to overcome this problem.
    For me it's been 5 days I even try to with new project and search everywhere I thought I'm the only one getting this problem it's good to hear there I some one accept me I'm so happy..... Yyeeee
     
    Last edited: Apr 14, 2020
  3. Kiesco91

    Kiesco91

    Joined:
    Aug 20, 2018
    Posts:
    80
    Yeah it's super stressful! Everything was fine before I updated.

    My solution might not be suitable but my normal work flow is on a mac and I found by transferring it to my Windows laptop to build it works so my laptop is running unity 2020 beta and that works for me.
     
  4. koushiknaik

    koushiknaik

    Joined:
    Apr 10, 2020
    Posts:
    5
    Means the poblem is solved if it's solved plese explain more clearly plese I beg you Im doing my best to solve this poblem but the error don't come down below 100 it says "ha ha ha ha you F*** in idiot you can't solve me I'm invincible ha ha ha" every time I feal like it's says like that plese help
    ...
     
  5. Kiesco91

    Kiesco91

    Joined:
    Aug 20, 2018
    Posts:
    80
    Well It's not solved solved but more of a work around. I just transferred my files to a different computer running the unity 2020 beta version, located the project and it worked.

    My mac will still give me this lint infrastructure error but my windows laptop will build it no problem
     
  6. koushiknaik

    koushiknaik

    Joined:
    Apr 10, 2020
    Posts:
    5
    It means it's poblem with computer
    Good for you you have 2 for me it's only 1 I don't know what should I do..
     
  7. tobiassontom

    tobiassontom

    Joined:
    May 7, 2020
    Posts:
    1
    Hi everyone, I solved this by choosing "Build App Bundle (Google play)" in Build Settings.
     
    hahahpizza likes this.
  8. Kiesco91

    Kiesco91

    Joined:
    Aug 20, 2018
    Posts:
    80
    Ahh perfect! I will try this later as working on my mac is so much easier than laptop!!!
     
  9. HeAdWi9H

    HeAdWi9H

    Joined:
    Jan 27, 2019
    Posts:
    2
    in 2019,4
    add this in launchertempple.gradle under android

    lintOptions {
    abortOnError false
    checkReleaseBuilds false
    }


    example : =
    Code (CSharp):
    1. buildscript {
    2.     repositories {
    3.         google()
    4.         jcenter()
    5.     }
    6.     dependencies {
    7.         // Must be Android Gradle Plugin 3.6.0 or later. For a list of
    8.         // compatible Gradle versions refer to:
    9.         // https://developer.android.com/studio/releases/gradle-plugin
    10.         classpath 'com.android.tools.build:gradle:3.6.0'
    11.     }
    12. }
    13.  
    14. allprojects {
    15.    repositories {
    16.       google()
    17.       jcenter()
    18.       flatDir {
    19.         dirs 'libs'
    20.       }
    21.    }
    22. }
    23.  
    24.  
    25. apply plugin: 'com.android.application'
    26.  
    27. dependencies {
    28.     implementation project(':unityLibrary')
    29.     }
    30.  
    31. android {
    32.     compileSdkVersion **APIVERSION**
    33.     buildToolsVersion '**BUILDTOOLS**'
    34.  
    35.     compileOptions {
    36.         sourceCompatibility JavaVersion.VERSION_1_8
    37.         targetCompatibility JavaVersion.VERSION_1_8
    38.     }
    39.  
    40.     defaultConfig {
    41.         minSdkVersion **MINSDKVERSION**
    42.         targetSdkVersion **TARGETSDKVERSION**
    43.         applicationId '**APPLICATIONID**'
    44.         ndk {
    45.             abiFilters **ABIFILTERS**
    46.         }
    47.         versionCode **VERSIONCODE**
    48.         versionName '**VERSIONNAME**'
    49.     multiDexEnabled true
    50.     lintOptions {
    51.               abortOnError false
    52.         checkReleaseBuilds false
    53.       }
    54.     }
    55.  
    56.     aaptOptions {
    57.         noCompress = ['.unity3d', '.ress', '.resource', '.obb'**STREAMING_ASSETS**]
    58.         ignoreAssetsPattern = "!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~"
    59.     }**SIGN**
    60.  
    61.     lintOptions {
    62.         abortOnError false
    63.     }
    64.  
    65.     buildTypes {
    66.         debug {
    67.             minifyEnabled **MINIFY_DEBUG**
    68.             useProguard **PROGUARD_DEBUG**
    69.             proguardFiles getDefaultProguardFile('proguard-android.txt')**SIGNCONFIG**
    70.             jniDebuggable true
    71.         }
    72.         release {
    73.             minifyEnabled **MINIFY_RELEASE**
    74.             useProguard **PROGUARD_RELEASE**
    75.             proguardFiles getDefaultProguardFile('proguard-android.txt')**SIGNCONFIG**
    76.         }
    77.     }**PACKAGING_OPTIONS****SPLITS**
    78. **BUILT_APK_LOCATION**
    79.     bundle {
    80.         language {
    81.             enableSplit = false
    82.         }
    83.         density {
    84.             enableSplit = false
    85.         }
    86.         abi {
    87.             enableSplit = true
    88.         }
    89.     }
    90. }**SPLITS_VERSION_CODE****LAUNCHER_SOURCE_BUILD_SETUP**
    91.  
     
  10. bouemama

    bouemama

    Joined:
    Dec 6, 2016
    Posts:
    18
    you saved me after 4 days searching thank you very much
     
    hahahpizza and HeAdWi9H like this.
  11. Gamer98898

    Gamer98898

    Joined:
    Nov 18, 2017
    Posts:
    11
    Thank you,
    Adding these line works in editor version 2021.3.9f1 too