Quantcast
Channel: Questions in topic: "il2cpp"
Viewing all articles
Browse latest Browse all 598

Gradle build failed. (kotlin, guava, gson...etc)

$
0
0
I want upgrade my project 5.6 to 2018.2.16 with il2cpp, dotnet4.x and gradle. (Android) ------------ - First, Empty project build is success. - Second, migration my project. Change build options, seting environment, and build. After looong time ago, build is failed. ------------------------------------------------------- CommandInvokationFailure: Gradle build failed. C:\Program Files\Java\jdk1.8.0_111\bin\java.exe -classpath "C:\Program Files\Unity2018\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-4.2.1.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleRelease" stderr[ FAILURE: Build failed with an exception. What went wrong: A problem occurred configuring root project 'gradleOut'. > Could not resolve all files for configuration ':classpath'.> Could not resolve com.android.tools.build:gradle:4.2.1. Required by: project :> Could not resolve com.android.tools.build:gradle:4.2.1.> Could not get resource 'https://jcenter.bintray.com/com/android/tools/build/gradle/4.2.1/gradle-4.2.1.pom'.> Could not GET 'https://jcenter.bintray.com/com/android/tools/build/gradle/4.2.1/gradle-4.2.1.pom'.> Connection reset *Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Get more help at https://help.gradle.org ... Full Log1 ▽ ----------------------------------------------------- - After that, I tried export project to Android studio. Export is success. But build is failed. I get this error messages. ----------------------------------------- Failed to resolve: org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.2.71 Open File Show in Project Structure dialog Enable embedded Maven repository and sync project ... Full Log2▽ ------------------------------------------ What can I do? Have a solutions? ------------------------------------------ **FULL LOG 1** CommandInvokationFailure: Gradle build failed. C:\Program Files\Java\jdk1.8.0_111\bin\java.exe -classpath "C:\Program Files\Unity2018\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-4.2.1.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleRelease" stderr[ FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring root project 'gradleOut'. > Could not resolve all files for configuration ':classpath'.> Could not resolve com.android.tools.build:gradle:4.2.1. Required by: project :> Could not resolve com.android.tools.build:gradle:4.2.1.> Could not get resource 'https://jcenter.bintray.com/com/android/tools/build/gradle/4.2.1/gradle-4.2.1.pom'.> Could not GET 'https://jcenter.bintray.com/com/android/tools/build/gradle/4.2.1/gradle-4.2.1.pom'.> Connection reset * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. * Get more help at https://help.gradle.org BUILD FAILED in 20s ] stdout[ Starting a Gradle Daemon (subsequent builds will be faster) ] exit code: 1 UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <88edc2c3d52c431ca64da37d556b038f>:0) UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <88edc2c3d52c431ca64da37d556b038f>:0) UnityEditor.Android.AndroidJavaTools.RunJava (System.String args, System.String workingdir, System.Action`1[T] progress, System.String error) (at <88edc2c3d52c431ca64da37d556b038f>:0) UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, System.String workingdir, System.String task, System.Action`1[T] progress) (at <88edc2c3d52c431ca64da37d556b038f>:0) Rethrow as GradleInvokationException: Gradle build failed UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, System.String workingdir, System.String task, System.Action`1[T] progress) (at <88edc2c3d52c431ca64da37d556b038f>:0) UnityEditor.Android.PostProcessor.Tasks.BuildGradleProject.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <88edc2c3d52c431ca64da37d556b038f>:0) UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <88edc2c3d52c431ca64da37d556b038f>:0) UnityEditor.BuildPipeline:BuildPlayer(String[], String, BuildTarget, BuildOptions) JenkinsBuilder:GenericBuild(String[], String, BuildTarget, BuildOptions) (at Assets/Editor/JenkinsBuilder.cs:215) JenkinsBuilder:PerformAndroidBuild(ServerType, BuildTarget) (at Assets/Editor/JenkinsBuilder.cs:132) JenkinsBuilder:PerformAndroidBuild(ServerType) (at Assets/Editor/JenkinsBuilder.cs:87) JenkinsBuilder:PerformAndroidBuild_GlobalIntegration() (at Assets/Editor/JenkinsBuilder.cs:52)   ------------------------------------------------------- **FULL LOG2** Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'. It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html **Failed to resolve: org.jetbrains.kotlin:kotlin-reflect:1.2.0 Open File Show in Project Structure dialog Enable embedded Maven repository and sync project** Failed to resolve: org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.2.71 Open File Show in Project Structure dialog Enable embedded Maven repository and sync project Failed to resolve: com.google.guava:guava:23.0 Open File Show in Project Structure dialog Enable embedded Maven repository and sync project Failed to resolve: com.google.code.gson:gson:2.8.0 Open File Show in Project Structure dialog Enable embedded Maven repository and sync project Failed to resolve: org.apache.commons:commons-compress:1.12 Open File Show in Project Structure dialog Enable embedded Maven repository and sync project Failed to resolve: org.apache.httpcomponents:httpmime:4.5.2 Open File Show in Project Structure dialog Enable embedded Maven repository and sync project Failed to resolve: org.apache.httpcomponents:httpcore:4.4.5 Open File Show in Project Structure dialog Enable embedded Maven repository and sync project Failed to resolve: net.sf.kxml:kxml2:2.3.0 Open File Show in Project Structure dialog Enable embedded Maven repository and sync project Failed to resolve: org.jetbrains:annotations:13.0 Open File Show in Project Structure dialog Enable embedded Maven repository and sync project Failed to resolve: com.sun.activation:javax.activation:1.2.0 Open File Show in Project Structure dialog Failed to resolve: org.glassfish.jaxb:jaxb-runtime:2.2.11 Open File Show in Project Structure dialog Enable embedded Maven repository and sync project Failed to resolve: com.google.jimfs:jimfs:1.1 Open File Show in Project Structure dialog Enable embedded Maven repository and sync project The targetSdk version should not be declared in the android manifest file. You can move the version from the manifest to the defaultConfig in the build.gradle file. The targetSdk version should not be declared in the android manifest file. You can move the version from the manifest to the defaultConfig in the build.gradle file. The targetSdk version should not be declared in the android manifest file. You can move the version from the manifest to the defaultConfig in the build.gradle file.

Viewing all articles
Browse latest Browse all 598

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>