Задать вопрос
@Ad1yar

Не build-иться игра на Unity хотя все правильно вроде бы почему?

Я создал кликер с рекламой(banner снизу) но при build-е она не хочет и дает аж 4 ошибки
вот они все:
1:
> Configure project :launcher
Exception while marshalling C:\Program Files\Unity\Hub\Editor\2021.3.13f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\build-tools\30.0.2\package.xml. Probably the SDK is read-only
Exception while marshalling C:\Program Files\Unity\Hub\Editor\2021.3.13f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platform-tools\package.xml. Probably the SDK is read-only
Exception while marshalling C:\Program Files\Unity\Hub\Editor\2021.3.13f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platforms\android-29\package.xml. Probably the SDK is read-only
Exception while marshalling C:\Program Files\Unity\Hub\Editor\2021.3.13f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platforms\android-30\package.xml. Probably the SDK is read-only
Exception while marshalling C:\Program Files\Unity\Hub\Editor\2021.3.13f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\tools\package.xml. Probably the SDK is read-only
Exception while marshalling C:\Program Files\Unity\Hub\Editor\2021.3.13f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\build-tools\30.0.2\package.xml. Probably the SDK is read-only
Exception while marshalling C:\Program Files\Unity\Hub\Editor\2021.3.13f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platform-tools\package.xml. Probably the SDK is read-only
Exception while marshalling C:\Program Files\Unity\Hub\Editor\2021.3.13f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platforms\android-29\package.xml. Probably the SDK is read-only
Exception while marshalling C:\Program Files\Unity\Hub\Editor\2021.3.13f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platforms\android-30\package.xml. Probably the SDK is read-only
Exception while marshalling C:\Program Files\Unity\Hub\Editor\2021.3.13f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\tools\package.xml. Probably the SDK is read-only

> Task :unityLibrary:compileReleaseJavaWithJavac FAILED

> Task :launcher:mergeReleaseResources

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.1.1/userguide/command_li...
16 actionable tasks: 16 executed

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

Вторая:
C:\Users\isina\Documents\MyGamesUnity\Default Clicker\Library\Bee\Android\Prj\Mono2x\Gradle\unityLibrary\src\main\java\com\unity3d\mediation\BannerAd.java:11: error: cannot find symbol
import com.unity3d.mediation.BannerAdView;
^
symbol: class BannerAdView
location: package com.unity3d.mediation
C:\Users\isina\Documents\MyGamesUnity\Default Clicker\Library\Bee\Android\Prj\Mono2x\Gradle\unityLibrary\src\main\java\com\unity3d\mediation\BannerAd.java:12: error: cannot find symbol
import com.unity3d.mediation.BannerAdViewSize;
^
symbol: class BannerAdViewSize
location: package com.unity3d.mediation
C:\Users\isina\Documents\MyGamesUnity\Default Clicker\Library\Bee\Android\Prj\Mono2x\Gradle\unityLibrary\src\main\java\com\unity3d\mediation\BannerAd.java:13: error: cannot find symbol
import com.unity3d.mediation.IBannerAdViewListener;
^
symbol: class IBannerAdViewListener
location: package com.unity3d.mediation
C:\Users\isina\Documents\MyGamesUnity\Default Clicker\Library\Bee\Android\Prj\Mono2x\Gradle\unityLibrary\src\main\java\com\unity3d\mediation\BannerAd.java:14: error: package com.unity3d.mediation.errors does not exist
import com.unity3d.mediation.errors.LoadError;
^
C:\Users\isina\Documents\MyGamesUnity\Default Clicker\Library\Bee\Android\Prj\Mono2x\Gradle\unityLibrary\src\main\java\com\unity3d\mediation\BannerAd.java:18: error: cannot find symbol
BannerAdView bannerAdView;
^
symbol: class BannerAdView
location: class BannerAd
C:\Users\isina\Documents\MyGamesUnity\Default Clicker\Library\Bee\Android\Prj\Mono2x\Gradle\unityLibrary\src\main\java\com\unity3d\mediation\BannerAd.java:22: error: cannot find symbol
public BannerAd(Activity activity, String adUnitId, BannerAdViewSize size, IBannerAdViewListener bannerListener) {
^
symbol: class BannerAdViewSize
location: class BannerAd
C:\Users\isina\Documents\MyGamesUnity\Default Clicker\Library\Bee\Android\Prj\Mono2x\Gradle\unityLibrary\src\main\java\com\unity3d\mediation\BannerAd.java:22: error: cannot find symbol
public BannerAd(Activity activity, String adUnitId, BannerAdViewSize size, IBannerAdViewListener bannerListener) {
^
symbol: class IBannerAdViewListener
location: class BannerAd
C:\Users\isina\Documents\MyGamesUnity\Default Clicker\Library\Bee\Android\Prj\Mono2x\Gradle\unityLibrary\src\main\java\com\unity3d\mediation\BannerAd.java:65: error: cannot find symbol
public AdState getAdState() {
^
symbol: class AdState
location: class BannerAd
C:\Users\isina\Documents\MyGamesUnity\Default Clicker\Library\Bee\Android\Prj\Mono2x\Gradle\unityLibrary\src\main\java\com\unity3d\mediation\BannerAd.java:25: error: cannot find symbol
this.bannerAdView = new BannerAdView(activity);
^
symbol: class BannerAdView
location: class BannerAd
C:\Users\isina\Documents\MyGamesUnity\Default Clicker\Library\Bee\Android\Prj\Mono2x\Gradle\unityLibrary\src\main\java\com\unity3d\mediation\BannerAd.java:30: error: cannot find symbol
bannerAdView.setListener(new IBannerAdViewListener() {
^
symbol: class IBannerAdViewListener
location: class BannerAd
Note: C:\Users\isina\Documents\MyGamesUnity\Default Clicker\Library\Bee\Android\Prj\Mono2x\Gradle\unityLibrary\src\main\java\com\unity3d\player\UnityPlayerActivity.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
10 errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':unityLibrary:compileReleaseJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* 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 46s
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8

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

Третья:
CommandInvokationFailure: Gradle build failed.
C:\Program Files\Unity\Hub\Editor\2021.3.13f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK\bin\java.exe -classpath "C:\Program Files\Unity\Hub\Editor\2021.3.13f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-6.1.1.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleRelease"

Четвертая:
UnityEditor.BuildPlayerWindow+BuildMethodException: 4 errors
at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002da] in :0
at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in :0
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

И ПРЕДУПРЕЖДЕНИЕ:
Unable to find player assembly: C:\Users\isina\Documents\MyGamesUnity\Default Clicker\Temp\StagingArea\Data\Managed\UnityEngine.TestRunner.dll
UnityEngine.Debug:LogWarning (object)

Я пробовал создать новый проект но ничего успешного помогите пожалуйста

(Я МНОЖЕСТВО СООБЩЕНИЙ СОКРАТИЛ)
  • Вопрос задан
  • 545 просмотров
Подписаться 1 Сложный 2 комментария
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы