@K1ald

Ошибки при компиляции в юнити(текст ошибок приведен), прошу помочь!..?

Уже месяц, и я до сих пор не могу решить свою проблему. Подскажите в чем дело, что не так?....

1 ошибка
File C:\Users\nix\.android\repositories.cfg could not be loaded.
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
2 ошибка
Starting a Gradle Daemon, 1 busy and 1 incompatible and 1 stopped Daemons could not be reused, use --status for details

> Configure project :launcher
cache module-artifact.bin (C:\Users\nix\.gradle\caches\modules-2\metadata-2.69\module-artifact.bin) is corrupt. Discarding.
cache resource-at-url.bin (C:\Users\nix\.gradle\caches\modules-2\metadata-2.69\resource-at-url.bin) is corrupt. Discarding.
Unable to parse settings file C:\Users\nix\.android\analytics.settings: com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
WARNING: The option setting 'android.bundle.enableUncompressedNativeLibs=false' is experimental and unsupported.
The current default is 'true'.

> Configure project :unityLibrary
WARNING: The option setting 'android.bundle.enableUncompressedNativeLibs=false' is experimental and unsupported.
The current default is 'true'.

> Task :launcher:preBuild UP-TO-DATE
> Task :unityLibrary:preBuild UP-TO-DATE
> Task :unityLibrary:preReleaseBuild UP-TO-DATE
> Task :launcher:prepareLintJar
> Task :unityLibrary:checkReleaseManifest
> Task :unityLibrary:processReleaseManifest
> Task :unityLibrary:packageReleaseRenderscript NO-SOURCE
> Task :unityLibrary:compileReleaseRenderscript NO-SOURCE
> Task :unityLibrary:generateReleaseResValues
> Task :unityLibrary:generateReleaseResources
> Task :launcher:preReleaseBuild
> Task :launcher:compileReleaseRenderscript NO-SOURCE
> Task :launcher:generateReleaseResValues
> Task :launcher:generateReleaseResources
> Task :launcher:checkReleaseManifest
> Task :launcher:createReleaseCompatibleScreenManifests
> Task :launcher:mainApkListPersistenceRelease
> Task :launcher:processReleaseManifest
> Task :launcher:mergeReleaseShaders
> Task :launcher:compileReleaseShaders
> Task :launcher:generateReleaseAssets
> Task :launcher:checkReleaseDuplicateClasses
> Task :launcher:generateReleaseBuildConfig
> Task :launcher:mergeReleaseJniLibFolders
> Task :launcher:processReleaseJavaRes NO-SOURCE
> Task :launcher:collectReleaseDependencies
> Task :launcher:configureReleaseDependencies
> Task :unityLibrary:packageReleaseResources
> Task :unityLibrary:mergeReleaseShaders
> Task :unityLibrary:compileReleaseShaders
> Task :unityLibrary:generateReleaseAssets
> Task :launcher:validateSigningRelease
> Task :launcher:mergeReleaseResources
> Task :unityLibrary:packageReleaseAssets
> Task :unityLibrary:compileReleaseAidl NO-SOURCE
> Task :unityLibrary:generateReleaseBuildConfig
> Task :unityLibrary:generateReleaseRFile
> Task :unityLibrary:prepareLintJar
> Task :unityLibrary:generateReleaseSources
> Task :unityLibrary:javaPreCompileRelease
> Task :launcher:bundleReleaseResources
> Task :launcher:mergeReleaseAssets
> Task :launcher:compileReleaseAidl NO-SOURCE
> Task :launcher:generateReleaseSources
> Task :launcher:processReleaseResources
> Task :launcher:signingConfigWriterRelease

> Task :unityLibrary:compileReleaseJavaWithJavac

> Task :unityLibrary:bundleLibCompileRelease
> Task :launcher:javaPreCompileRelease
> Task :unityLibrary:bundleLibRuntimeRelease
> Task :unityLibrary:processReleaseJavaRes NO-SOURCE
> Task :unityLibrary:bundleLibResRelease
> Task :launcher:compileReleaseJavaWithJavac
> Task :unityLibrary:mergeReleaseJniLibFolders
> Task :unityLibrary:transformNativeLibsWithMergeJniLibsForRelease
> Task :unityLibrary:transformNativeLibsWithIntermediateJniLibsForRelease
> Task :launcher:transformClassesWithDexBuilderForRelease
> Task :launcher:transformDexArchiveWithExternalLibsDexMergerForRelease
> Task :launcher:transformDexArchiveWithDexMergerForRelease
> Task :launcher:transformNativeLibsWithMergeJniLibsForRelease FAILED

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

UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

3
Note: D:\Unity\UnityProjects\MyFirstPlatformer\Temp\gradleOut\unityLibrary\src\main\java\com\unity3d\player\UnityPlayerActivity.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':launcher:transformNativeLibsWithMergeJniLibsForRelease'.
> org/apache/commons/codec/binary/Base64

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

UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Есть еще но сюда их не могу добавить(символов слишком много)
  • Вопрос задан
  • 111 просмотров
Пригласить эксперта
Ответы на вопрос 1
MANAB
@MANAB
Разрабатываю на C#: Web, Desktop, Gamedev
Почисти кэш проекта.
Gradle устарел или от него надо избавится.
Ответ написан
Ваш ответ на вопрос

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

Войти через центр авторизации
Похожие вопросы