Help with the error

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

3 Likes

found a solution?

Share the exact error with the build.gradle file which is pointed in the error to look into.

I had a similar issue. For me Unity added the 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