При компиляции в gradle
выдает ошибку.
В чем может быть ошибка?
Подключено:
Appodeal
kidoz
DevtoDev
OpenIAB
В консоли это:
CommandInvokationFailure: Gradle build failed.
E:/jdk201711\bin\java.exe -classpath "E:\Unity5.6.4\Unity\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-2.14.jar" org.gradle.launcher.GradleMain "assembleRelease"
stderr[
Dex: The number of method references in a .dex file cannot exceed 64K.
Learn how to resolve this issue at https://developer.android.com/tools/building/multidex.html
UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]: 65536
at com.android.dx.merge.DexMerger$8.updateIndex(DexMerger.java:565)
at com.android.dx.merge.DexMerger$IdMerger.mergeSorted(DexMerger.java:276)
at com.android.dx.merge.DexMerger.mergeMethodIds(DexMerger.java:574)
at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:166)
at com.android.dx.merge.DexMerger.merge(DexMerger.java:198)
at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:506)
at com.android.dx.command.dexer.Main.runMonoDex(Main.java:336)
at com.android.dx.command.dexer.Main.runDx(Main.java:291)
at com.android.dx.command.dexer.Main.main(Main.java:247)
at com.android.dx.command.Main.main(Main.java:94)
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':transformClassesWithDexForRelease'.
> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'E:\jdk201711\bin\java.exe'' finished with non-zero exit value 2
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
]
stdout[
Observed package id 'tools' in inconsistent location 'E:\AD\sdk\tools ��������' (Expected 'E:\AD\sdk\tools')
Already observed package id 'tools' in 'E:\AD\sdk\tools'. Skipping duplicate at 'E:\AD\sdk\tools ��������'
Observed package id 'tools' in inconsistent location 'E:\AD\sdk\toolsold' (Expected 'E:\AD\sdk\tools')
Already observed package id 'tools' in 'E:\AD\sdk\tools'. Skipping duplicate at 'E:\AD\sdk\toolsold'
Incremental java compilation is an incubating feature.
:preBuild UP-TO-DATE
:preReleaseBuild UP-TO-DATE
:checkReleaseManifest
:preDebugBuild UP-TO-DATE
:GoogleMobileAdsPlugin:preBuild UP-TO-DATE
:GoogleMobileAdsPlugin:preReleaseBuild UP-TO-DATE
:GoogleMobileAdsPlugin:compileReleaseNdk UP-TO-DATE
:GoogleMobileAdsPlugin:compileLint
:GoogleMobileAdsPlugin:copyReleaseLint UP-TO-DATE
:GoogleMobileAdsPlugin:mergeReleaseProguardFiles UP-TO-DATE
:GoogleMobileAdsPlugin:packageReleaseRenderscript UP-TO-DATE
:GoogleMobileAdsPlugin:checkReleaseManifest
:GoogleMobileAdsPlugin:prepareReleaseDependencies
:GoogleMobileAdsPlugin:compileReleaseRenderscript
:GoogleMobileAdsPlugin:generateReleaseResValues UP-TO-DATE
:GoogleMobileAdsPlugin:generateReleaseResources
:GoogleMobileAdsPlugin:packageReleaseResources
:GoogleMobileAdsPlugin:compileReleaseAidl
:GoogleMobileAdsPlugin:generateReleaseBuildConfig
:GoogleMobileAdsPlugin:mergeReleaseShaders
:GoogleMobileAdsPlugin:compileReleaseShaders
:GoogleMobileAdsPlugin:generateReleaseAssets
:GoogleMobileAdsPlugin:mergeReleaseAssets
:GoogleMobileAdsPlugin:processReleaseManifest
:GoogleMobileAdsPlugin:processReleaseResources
:GoogleMobileAdsPlugin:generateReleaseSources
:GoogleMobileAdsPlugin:incrementalReleaseJavaCompilationSafeguard
:GoogleMobileAdsPlugin:compileReleaseJavaWithJavac
:GoogleMobileAdsPlugin:processReleaseJavaRes UP-TO-DATE
:GoogleMobileAdsPlugin:transformResourcesWithMergeJavaResForRelease
:GoogleMobileAdsPlugin:transformClassesAndResourcesWithSyncLibJarsForRelease
:GoogleMobileAdsPlugin:mergeReleaseJniLibFolders
:GoogleMobileAdsPlugin:transformNative_libsWithMergeJniLibsForRelease
:GoogleMobileAdsPlugin:transformNative_libsWithSyncJniLibsForRelease
:GoogleMobileAdsPlugin:bundleRelease
:KidozSdk:preBuild UP-TO-DATE
:KidozSdk:preReleaseBuild UP-TO-DATE
:KidozSdk:compileReleaseNdk UP-TO-DATE
:KidozSdk:compileLint
:KidozSdk:copyReleaseLint UP-TO-DATE
:KidozSdk:mergeReleaseProguardFiles UP-TO-DATE
:KidozSdk:packageReleaseRenderscript UP-TO-DATE
:KidozSdk:checkReleaseManifest
:KidozSdk:prepareReleaseDependencies
:KidozSdk:compileReleaseRenderscript
:KidozSdk:generateReleaseResValues UP-TO-DATE
:KidozSdk:generateReleaseResources
:KidozSdk:packageReleaseResources
:KidozSdk:compileReleaseAidl
:KidozSdk:generateReleaseBuildConfig
:KidozSdk:mergeReleaseShaders
:KidozSdk:compileReleaseShaders
:KidozSdk:generateReleaseAssets
:KidozSdk:mergeReleaseAssets
:KidozSdk:processReleaseManifest
:KidozSdk:processReleaseResources
:KidozSdk:generateReleaseSources
:KidozSdk:incrementalReleaseJavaCompilationSafeguard
:KidozSdk:compileReleaseJavaWithJavac
:KidozSdk:processReleaseJavaRes UP-TO-DATE
:KidozSdk:transformResourcesWithMergeJavaResForRelease
:KidozSdk:transformClassesAndResourcesWithSyncLibJarsForRelease
ImmutableJarInput{name=main, file=E:\A_Project\BabyPhoneAppodealLibs\Temp\gradleOut\KidozSdk\build\intermediates\transforms\mergeJavaRes\release\jars\2\3\main.jar, contentTypes=RESOURCES, scopes=PROJECT,PROJECT_LOCAL_DEPS, status=NOTCHANGED}
ImmutableDirectoryInput{name=76e2a7d77b86bc6788e6ff93a0f696ea0c1db392, file=E:\A_Project\BabyPhoneAppodealLibs\Temp\gradleOut\KidozSdk\build\intermediates\classes\release, contentTypes=CLASSES, scopes=PROJECT, changedFiles={}}
:KidozSdk:mergeReleaseJniLibFolders
:KidozSdk:transformNative_libsWithMergeJniLibsForRelease
:KidozSdk:transformNative_libsWithSyncJniLibsForRelease
:KidozSdk:bundleRelease
:adcolony:preBuild UP-TO-DATE
:adcolony:preReleaseBuild UP-TO-DATE
:adcolony:compileReleaseNdk UP-TO-DATE
:adcolony:compileLint
:adcolony:copyReleaseLint UP-TO-DATE
:adcolony:mergeReleaseProguardFiles UP-TO-DATE
:adcolony:packageReleaseRenderscript UP-TO-DATE
:adcolony:checkReleaseManifest
:adcolony:prepareReleaseDependencies
:adcolony:compileReleaseRenderscript
:adcolony:generateReleaseResValues UP-TO-DATE
:adcolony:generateReleaseResources
:adcolony:packageReleaseResources
:adcolony:compileReleaseAidl
:adcolony:generateReleaseBuildConfig
:adcolony:mergeReleaseShaders
:adcolony:compileReleaseShaders
:adcolony:generateReleaseAssets
:adcolony:mergeReleaseAssets
:adcolony:processReleaseManifest
:adcolony:processReleaseResources
:adcolony:generateReleaseSources
:adcolony:incrementalReleaseJavaCompilationSafeguard
:adcolony:compileReleaseJavaWithJavac
:adcolony:processReleaseJavaRes UP-TO-DATE
:adcolony:transformResourcesWithMergeJavaResForRelease
:adcolony:transformClassesAndResourcesWithSyncLibJarsForRelease
:adcolony:mergeReleaseJniLibFolders
:adcolony:transformNative_libsWithMergeJniLibsForRelease
:adcolony:transformNative_libsWithSyncJniLibsForRelease
:adcolony:bundleRelease
:appodeal:preBuild UP-TO-DATE
:appodeal:preReleaseBuild UP-TO-DATE
:appodeal:compileReleaseNdk UP-TO-DATE
:appodeal:compileLint
:appodeal:copyReleaseLint UP-TO-DATE
:appodeal:mergeReleaseProguardFiles UP-TO-DATE
:appodeal:packageReleaseRenderscript UP-TO-DATE
:appodeal:checkReleaseManifest
:appodeal:prepareReleaseDependencies
:appodeal:compileReleaseRenderscript
:appodeal:generateReleaseResValues UP-TO-DATE
:appodeal:generateReleaseResources
:appodeal:packageReleaseResources
:appodeal:compileReleaseAidl
:appodeal:generateReleaseBuildConfig
:appodeal:mergeReleaseShaders
:appodeal:compileReleaseShaders
:appodeal:generateReleaseAssets
:appodeal:mergeReleaseAssets
:appodeal:processReleaseManifest
:appodeal:processReleaseResources
:appodeal:generateReleaseSources
:appodeal:incrementalReleaseJavaCompilationSafeguard
:appodeal:compileReleaseJavaWithJavac
:appodeal:processReleaseJavaRes UP-TO-DATE
:appodeal:transformResourcesWithMergeJavaResForRelease
:appodeal:transformClassesAndResourcesWithSyncLibJarsForRelease
:appodeal:mergeReleaseJniLibFolders
:appodeal:transformNative_libsWithMergeJniLibsForRelease
:appodeal:transformNative_libsWithSyncJniLibsForRelease
:appodeal:bundleRelease
:inmobi:preBuild UP-TO-DATE
:inmobi:preReleaseBuild UP-TO-DATE
:inmobi:compileReleaseNdk UP-TO-DATE
:inmobi:compileLint
:inmobi:copyReleaseLint UP-TO-DATE
:inmobi:mergeReleaseProguardFiles UP-TO-DATE
:inmobi:packageReleaseRenderscript UP-TO-DATE
:inmobi:checkReleaseManifest
:inmobi:prepareReleaseDependencies
:inmobi:compileReleaseRenderscript
:inmobi:generateReleaseResValues UP-TO-DATE
:inmobi:generateReleaseResources
:inmobi:packageReleaseResources
:inmobi:compileReleaseAidl
:inmobi:generateReleaseBuildConfig
:inmobi:mergeReleaseShaders
:inmobi:compileReleaseShaders
:inmobi:generateReleaseAssets
:inmobi:mergeReleaseAssets
:inmobi:processReleaseManifest
:inmobi:processReleaseResources
:inmobi:generateReleaseSources
:inmobi:incrementalReleaseJavaCompilationSafeguard
:inmobi:compileReleaseJavaWithJavac
:inmobi:processReleaseJavaRes UP-TO-DATE
:inmobi:transformResourcesWithMergeJavaResForRelease
:inmobi:transformClassesAndResourcesWithSyncLibJarsForRelease
ImmutableJarInput{name=main, file=E:\A_Project\BabyPhoneAppodealLibs\Temp\gradleOut\inmobi\build\intermediates\transforms\mergeJavaRes\release\jars\2\3\main.jar, contentTypes=RESOURCES, scopes=PROJECT,PROJECT_LOCAL_DEPS, status=NOTCHANGED}
ImmutableDirectoryInput{name=7fb58ebc5b6a87cb59f9f615f5e84998374514a2, file=E:\A_Project\BabyPhoneAppodealLibs\Temp\gradleOut\inmobi\build\intermediates\classes\release, contentTypes=CLASSES, scopes=PROJECT, changedFiles={}}
:inmobi:mergeReleaseJniLibFolders
:inmobi:transformNative_libsWithMergeJniLibsForRelease
:inmobi:transformNative_libsWithSyncJniLibsForRelease
:inmobi:bundleRelease
:startapp:preBuild UP-TO-DATE
:startapp:preReleaseBuild UP-TO-DATE
:startapp:compileReleaseNdk UP-TO-DATE
:startapp:compileLint
:startapp:copyReleaseLint UP-TO-DATE
:startapp:mergeReleaseProguardFiles UP-TO-DATE
:startapp:packageReleaseRenderscript UP-TO-DATE
:startapp:checkReleaseManifest
:startapp:prepareReleaseDependencies
:startapp:compileReleaseRenderscript
:startapp:generateReleaseResValues UP-TO-DATE
:startapp:generateReleaseResources
:startapp:packageReleaseResources
:startapp:compileReleaseAidl
:startapp:generateReleaseBuildConfig
:startapp:mergeReleaseShaders
:startapp:compileReleaseShaders
:startapp:generateReleaseAssets
:startapp:mergeReleaseAssets
:startapp:processReleaseManifest
:startapp:processReleaseResources
:startapp:generateReleaseSources
:startapp:incrementalReleaseJavaCompilationSafeguard
:startapp:compileReleaseJavaWithJavac
:startapp:processReleaseJavaRes UP-TO-DATE
:startapp:transformResourcesWithMergeJavaResForRelease
:startapp:transformClassesAndResourcesWithSyncLibJarsForRelease
:startapp:mergeReleaseJniLibFolders
:startapp:transformNative_libsWithMergeJniLibsForRelease
:startapp:transformNative_libsWithSyncJniLibsForRelease
:startapp:bundleRelease
:yandex-metrica:preBuild UP-TO-DATE
:yandex-metrica:preReleaseBuild UP-TO-DATE
:yandex-metrica:compileReleaseNdk UP-TO-DATE
:yandex-metrica:compileLint
:yandex-metrica:copyReleaseLint UP-TO-DATE
:yandex-metrica:mergeReleaseProguardFiles UP-TO-DATE
:yandex-metrica:packageReleaseRenderscript UP-TO-DATE
:yandex-metrica:checkReleaseManifest
:yandex-metrica:prepareReleaseDependencies
:yandex-metrica:compileReleaseRenderscript
:yandex-metrica:generateReleaseResValues UP-TO-DATE
:yandex-metrica:generateReleaseResources
:yandex-metrica:packageReleaseResources
:yandex-metrica:compileReleaseAidl
:yandex-metrica:generateReleaseBuildConfig
:yandex-metrica:mergeReleaseShaders
:yandex-metrica:compileReleaseShaders
:yandex-metrica:generateReleaseAssets
:yandex-metrica:mergeReleaseAssets
:yandex-metrica:processReleaseManifest
:yandex-metrica:processReleaseResources
:yandex-metrica:generateReleaseSources
:yandex-metrica:incrementalReleaseJavaCompilationSafeguard
:yandex-metrica:compileReleaseJavaWithJavac
:yandex-metrica:processReleaseJavaRes UP-TO-DATE
:yandex-metrica:transformResourcesWithMergeJavaResForRelease
:yandex-metrica:transformClassesAndResourcesWithSyncLibJarsForRelease
:yandex-metrica:mergeReleaseJniLibFolders
:yandex-metrica:transformNative_libsWithMergeJniLibsForRelease
:yandex-metrica:transformNative_libsWithSyncJniLibsForRelease
:yandex-metrica:bundleRelease
:prepareDevtodevLibrary UP-TO-DATE
:prepareFirebaseCommon1162Library
:prepareFirebaseCommonLicense1162Library
:prepareFirebaseIid1162Library
:prepareFirebaseIidLicense1162Library
:prepareFirebaseMessaging1162Library UP-TO-DATE
:prepareFirebaseMessagingLicense1162Library
:prepareGradleOutAdcolonyUnspecifiedLibrary
:prepareGradleOutAppodealUnspecifiedLibrary
:prepareGradleOutGoogleMobileAdsPluginUnspecifiedLibrary
:prepareGradleOutInmobiUnspecifiedLibrary
:prepareGradleOutKidozSdkUnspecifiedLibrary
:prepareGradleOutStartappUnspecifiedLibrary
:prepareGradleOutYandexMetricaUnspecifiedLibrary
:preparePlayServicesAds1162Library UP-TO-DATE
:preparePlayServicesAdsLite1162Library UP-TO-DATE
:preparePlayServicesBase1162Library UP-TO-DATE
:preparePlayServicesBaseLicense1162Library
:preparePlayServicesBasement1162Library UP-TO-DATE
:preparePlayServicesBasementLicense1162Library
:preparePlayServicesTasks1162Library UP-TO-DATE
:preparePlayServicesTasksLicense1162Library
:prepareSupportCompat2520Library UP-TO-DATE
:prepareSupportCoreUi2520Library UP-TO-DATE
:prepareSupportCoreUtils2520Library UP-TO-DATE
:prepareSupportFragment2520Library UP-TO-DATE
:prepareSupportMediaCompat2520Library UP-TO-DATE
:prepareSupportV42520Library UP-TO-DATE
:prepareReleaseDependencies
:compileReleaseAidl UP-TO-DATE
:compileReleaseRenderscript UP-TO-DATE
:generateReleaseBuildConfig UP-TO-DATE
:mergeReleaseShaders UP-TO-DATE
:compileReleaseShaders UP-TO-DATE
:generateReleaseAssets UP-TO-DATE
:mergeReleaseAssets
:generateReleaseResValues UP-TO-DATE
:generateReleaseResources UP-TO-DATE
:mergeReleaseResources UP-TO-DATE
:processReleaseManifest UP-TO-DATE
:processReleaseResources
:generateReleaseSources
:incrementalReleaseJavaCompilationSafeguard UP-TO-DATE
:compileReleaseJavaWithJavac
:compileReleaseNdk UP-TO-DATE
:compileReleaseSources
:lintVitalRelease
:prePackageMarkerForRelease
:transformClassesWithDexForRelease
To run dex in process, the Gradle daemon needs a larger heap.
It currently has approximately 910 MB.
For faster builds, increase the maximum heap size for the Gradle daemon to more than 2048 MB.
To do this set org.gradle.jvmargs=-Xmx2048M in the project gradle.properties.
For more information see https://docs.gradle.org/current/userguide/build_environment.html
:transformClassesWithDexForRelease FAILED
BUILD FAILED
Total time: 6 mins 36.893 secs
]
exit code: 1
UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.GradleWrapper.RunJava (System.String args, System.String workingdir, UnityEditor.Android.Progress progress)
Rethrow as GradleInvokationException: Gradle build failed
UnityEditor.Android.GradleWrapper.RunJava (System.String args, System.String workingdir, UnityEditor.Android.Progress progress)
UnityEditor.Android.GradleWrapper.Run (System.String workingdir, System.String task, UnityEditor.Android.Progress progress)
UnityEditor.Android.PostProcessor.Tasks.BuildGradleProject.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context)
UnityEditor.HostView:OnGUI()
Айфон мало держит заряд, разбираемся с проблемой вместе с AppLab
Перевод документов на английский язык: Важность и ключевые аспекты
ЗдравствуйтеПри использовании WCF появилась такая проблема - не обновляются некоторые данные на клиенте пока не перезапущу сервер
Скажите пожалуйста,есть массив lang где хранится список языковЕсть url который помещён в переменную link