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

Help with the error

Discussion in 'Android' started by neo73940, Oct 13, 2021.

?

Help with the error

  1. launcher\build.gradle' line: 66

    1 vote(s)
    50.0%
  2. Get more help at https://help.gradle.org

    1 vote(s)
    50.0%
  1. neo73940

    neo73940

    Joined:
    Sep 3, 2021
    Posts:
    1
    FAILURE: Build failed with an exception.

    * Where:
    Build file 'C:\New Unity Project\Temp\gradleOut\launcher\build.gradle' line: 66

    * What went wrong:
    A problem occurred evaluating project ':launcher'.
    > Could not set unknown property 'assetPacks' for extension 'android' of type com.android.build.gradle.internal.dsl.BaseAppModuleExtension.

    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

    * Get more help at https://help.gradle.org
     
  2. grimjim

    grimjim

    Joined:
    Jan 18, 2014
    Posts:
    17
    found a solution?
     
  3. Voxel-Busters

    Voxel-Busters

    Joined:
    Feb 25, 2015
    Posts:
    1,828
    Share the exact error with the build.gradle file which is pointed in the error to look into.
     
  4. unity_jlN4F5yeBd5hDg

    unity_jlN4F5yeBd5hDg

    Joined:
    Jan 14, 2021
    Posts:
    3
    I had a similar issue. For me Unity added the
    Code (CSharp):
    1. assetPacks = [":UnityDataAssetPack"]
    line to both the launcher and to the unityLibrary module. For me the solution was to delete that line from the unityLibrary module