Unity LevelPlay 手順(仮)


LevelPlay Unity package のインスト


(logcat インストール)

player設定

34でエラーでるので、API level 31に

Android Resolve

resolve止まるので

https://raw.githubusercontent.com/googlesamples/unity-jar-resolver/master/gradlew.bat

in32 Exception Fix - GradleW.batをtempフォルダにおいてresolveを再度実行
resolve成功
ビルドし動作確認。デモの広告が流れます


Android Resolveセッティング

gradle.template.properties書き換え

このチェックが入ってないとgradle.template.propertiesが無いDeath!

https://developers.is.com/ironsource-mobile/unity/unity-plugin/#step-4

android.enableDexingArtifactTransform=false

Manifest.xml書き換え

<uses-permission android:name="com.google.android.gms.permission.AD_ID"/>

Android manual integration

  1. Download Android SDK Version 8.1.0

  2. Download Ad Quality SDK

  3. Copy .aar file to /Assets/Plugins/Android

LevelPlay Network mana

LevelPlay Mediation Setting

Unity CloudにてApp登録

ironsorce Levelplay


testモード


ironsorceのSDK networkの UnityAdsに入力

ビルド

build.gradle関連のエラーが出てBuild失敗。解消できず、、、

Starting a Gradle Daemon, 1 incompatible and 8 stopped Daemons could not be reused, use --status for details

> Configure project :unityLibrary
Build was configured to prefer settings repositories over project repositories but repository 'maven' was added by build file 'unityLibrary\build.gradle'

WARNING:We recommend using a newer Android Gradle plugin to use compileSdk = 33

This Android Gradle plugin (7.1.2) was tested up to compileSdk = 32

This warning can be suppressed by adding
    android.suppressUnsupportedCompileSdk=33
to this project's gradle.properties

The build will continue, but you are strongly encouraged to update your project to
use a newer Android Gradle Plugin that has been tested with compileSdk = 33


Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.2/userguide/command_line_interface.html#sec:command_line_warnings
52 actionable tasks: 4 executed, 48 up-to-date

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.
-----------
* What went wrong:
Execution failed for task ':launcher:checkReleaseDuplicateClasses'.
> Configuration `releaseRuntimeClasspath` contains AndroidX dependencies, but the `android.useAndroidX` property is not enabled, which may cause runtime issues.
  Set `android.useAndroidX=true` in the `gradle.properties` file and retry.
  The following AndroidX dependencies are detected:
  
CommandInvokationFailure: Gradle build failed. 

Environment Variables:
PROCESSOR_ARCHITECTURE = AMD64


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

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':launcher:checkReleaseDuplicateClasses'.
> Configuration `releaseRuntimeClasspath` contains AndroidX dependencies, but the `android.useAndroidX` property is not enabled, which may cause runtime issues.
  Set `android.useAndroidX=true` in the `gradle.properties` file and retry.

この記事が気に入ったらサポートをしてみませんか?