Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yandex ,admob, ironsource ,inmobi adapters cannot built on Android in Unity 2022.3.10f (latest max sdk 5.11.3) #299

Open
tungvl99ql opened this issue Nov 2, 2023 · 2 comments
Labels
bug Something isn't working stale This isue has been inactive

Comments

@tungvl99ql
Copy link

MAX Plugin Version

5.11.3

Unity Version

2022.3.10f1

Device/Platform Info

Android

Current Behavior

I have the following adapters:
google admob 22.5.0.0
inmobi 10.6.0.0
ironsource 7.5.2.0.0
pange 5.5.0.7.0
yandex 6.1.0.0
-gradle : gradle installed with unity(recommended)
-I tried changing the gradle path in preference to gradle version gradle-6.7.1 but still got the error.

-build to fail and I get errors:

Configure project :launcher
============================================================================
AppLovin Quality Service Plug-in for Gradle and Android Studio Version 5.0.2
Copyright (c) 2023 AppLovin Ltd. All rights reserved.
============================================================================

UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)


Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.

  • Where:
    Build file 'D:\Game\GamePikachu\Library\Bee\Android\Prj\IL2CPP\Gradle\launcher\build.gradle' line: 2

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

Failed to apply plugin 'applovin-quality-service'.
No such property: defaultConfig for class: java.lang.String

  • 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.
    ==============================================================================

2: Task failed with an exception.

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

compileSdkVersion is not specified. Please add it to build.gradle

  • 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

BUILD FAILED in 1s

UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

CommandInvokationFailure: Gradle build failed.
D:\UNITY project\2022.3.10f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK\bin\java.exe -classpath "D:\UNITY project\2022.3.10f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-7.2.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleRelease"

Environment Variables:
USERDOMAIN = DESKTOP-CKVAOU7
ProgramFiles = C:\Program Files
TMP = C:\Users\JACKIE1\AppData\Local\Temp
BURST_ANDROID_MIN_API_LEVEL = 22
PROCESSOR_ARCHITECTURE = AMD64
PROCESSOR_REVISION = 9e0a
OS = Windows_NT
CHROME_CRASHPAD_PIPE_NAME = \.\pipe\crashpad_11224_GRGQFTXBDWJTDGOI
PROCESSOR_IDENTIFIER = Intel64 Family 6 Model 158 Stepping 10, GenuineIntel
AMPLITUDE_API_KEY = 28f3cae0b33b8b3702120c9ed1a935aa
USERPROFILE = C:\Users\JackieLoveeeee
JAVA_HOME = D:\UNITY project\2022.3.10f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK
CommonProgramFiles = C:\Program Files\Common Files
DriverData = C:\Windows\System32\Drivers\DriverData
ComSpec = C:\Windows\system32\cmd.exe
LAUNCH_DARKLY_CLIENT_TOKEN = 60a7e30fafc7e60e33446283
PSModulePath = C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules
ANDROID_NDK_ROOT = D:\UNITY project\2022.3.10f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK
SystemRoot = C:\Windows
HEAP_CLIENT_TOKEN = 1717415662
NUMBER_OF_PROCESSORS = 6
WOOTRIC_CLIENT_TOKEN = NPS-aa8be4c3
JAVA_TOOL_OPTIONS = -Dfile.encoding=UTF-8
DEBUG_ENV_VAR = UnityHub
ProgramW6432 = C:\Program Files
FPS_BROWSER_APP_PROFILE_STRING = Internet Explorer
TEMP = C:\Users\JACKIE
1\AppData\Local\Temp
Path = C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files\dotnet;C:\Program Files\Microsoft SQL Server\150\Tools\Binn;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn;D:\ProgramFiles\nodejs;C:\Users\JackieLoveeeee\AppData\Local\Microsoft\WindowsApps;D:\ProgramFile\Microsoft VS Code\bin;C:\Users\JackieLoveeeee.dotnet\tools;C:\Users\JackieLoveeeee\AppData\Local\GitHubDesktop\bin;C:\Users\JackieLoveeeee\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\JackieLoveeeee\AppData\Roaming\npm
USERNAME = JackieLoveeeee
COMPUTERNAME = DESKTOP-CKVAOU7
PATHEXT = .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
SystemDrive = C:
ALLUSERSPROFILE = C:\ProgramData
SENTRY_ACCESS_TOKEN = 3df78d9e53f8456aa90fbae044ce1a6261421ab1d0014674bc2e933477289017
HEAP_CLIENT_TOKEN_STAGING = 3786794399
FPS_BROWSER_USER_PROFILE_STRING = Default
windir = C:\Windows
AMPLITUDE_API_KEY_STAGING = 83ee04fccc67e4fcc7dd527c4c6f1e21
PUBLIC = C:\Users\Public
CommonProgramFiles(x86) = C:\Program Files (x86)\Common Files
APPDATA = C:\Users\JackieLoveeeee\AppData\Roaming
OneDrive = C:\Users\JackieLoveeeee\OneDrive
PROCESSOR_LEVEL = 6
CommonProgramW6432 = C:\Program Files\Common Files
ProgramFiles(x86) = C:\Program Files (x86)
SESSIONNAME = Console
LOGONSERVER = \DESKTOP-CKVAOU7
LOCALAPPDATA = C:\Users\JackieLoveeeee\AppData\Local
HOMEPATH = \Users\JackieLoveeeee
LAUNCH_DARKLY_CLIENT_TOKEN_STAGING = 60a7e30fafc7e60e33446282
HOMEDRIVE = C:
USERDOMAIN_ROAMINGPROFILE = DESKTOP-CKVAOU7
ProgramData = C:\ProgramData
ORIGINAL_XDG_CURRENT_DESKTOP = undefined

stderr[
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.

  • Where:
    Build file 'D:\Game\GamePikachu\Library\Bee\Android\Prj\IL2CPP\Gradle\launcher\build.gradle' line: 2

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

Failed to apply plugin 'applovin-quality-service'.
No such property: defaultConfig for class: java.lang.String

  • 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.
    ==============================================================================

2: Task failed with an exception.

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

compileSdkVersion is not specified. Please add it to build.gradle

  • 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

BUILD FAILED in 1s
]
stdout[

Configure project :launcher
============================================================================
AppLovin Quality Service Plug-in for Gradle and Android Studio Version 5.0.2
Copyright (c) 2023 AppLovin Ltd. All rights reserved.
============================================================================
]
exit code: 1
UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at :0)
UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at :0)
UnityEditor.Android.Command.Run (System.String command, System.String args, System.String workingdir, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at :0)
UnityEditor.Android.AndroidJavaTools.RunJava (System.String args, System.String workingdir, System.Action1[T] progress, System.String error) (at <eb865e8041b4430e8b16e0e96097bf17>:0) UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, Unity.Android.Gradle.AndroidGradle androidGradle, System.String workingdir, System.String task, System.Action1[T] progress) (at :0)
Rethrow as GradleInvokationException: Gradle build failed
UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, Unity.Android.Gradle.AndroidGradle androidGradle, System.String workingdir, System.String task, System.Action`1[T] progress) (at :0)
UnityEditor.Android.PostProcessor.Tasks.BuildGradleProject.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at :0)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at :0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

Expected Behavior

No response

How to Reproduce

1.project using unity 2022.3.10f
2.install maxsdk 5.11.3
3. in the mediated network section:
install google admob ,inmobi,ironsource ,pange ,yandex
4. build -> error

Additional Info

No response

@tungvl99ql tungvl99ql added the bug Something isn't working label Nov 2, 2023
@JonathanLiuApp
Copy link
Contributor

Please try the fix here: #296 and let us know if you still have issues.

Copy link

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale This isue has been inactive label Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale This isue has been inactive
Projects
None yet
Development

No branches or pull requests

2 participants