Skip to content

Unity 6 Preview build error #389

Description

@hunght85

MAX Plugin Version

6.5.2

Unity Version

Unity 6000.0.1

Device/Platform Info

Android 14

Current Behavior

Error android build

Expected Behavior

No response

How to Reproduce

[SafeDK-ERROR] Android variants not detected.
Please make sure you place the directive:
apply plugin: 'applovin'
after you apply the Android plugin in your build.gradle file

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.

  • Where:
    Build file '/Volumes/MyData/Unity/Projects/Galaxiga/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/build.gradle' line: 22

  • What went wrong:
    A problem occurred evaluating project ':unityLibrary'.

Could not find method packaging() for arguments [build_79b3ak34n16texbfiq0ccfzhs$_run_closure2$_closure4@6c79c288] on extension 'android' of type com.android.build.gradle.LibraryExtension.

  • 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: Task failed with an exception.

  • What went wrong:
    A problem occurred configuring project ':launcher'.

Failed to notify project evaluation listener.
compileSdkVersion is not specified. Please add it to build.gradle
Android variants not detected.
Please make sure you place the directive:
apply plugin: 'applovin'
after you apply the Android plugin in your build.gradle file

Additional Info

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingduplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions