Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by foranie · Jan 07, 2019 at 04:12 PM · il2cppandroid sdk64-bit

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

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.

  • 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 :0) UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at :0) UnityEditor.Android.AndroidJavaTools.RunJava (System.String args, System.String workingdir, System.Action`1[T] progress, System.String error) (at :0) UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, System.String workingdir, System.String task, System.Action`1[T] progress) (at :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 :0) UnityEditor.Android.PostProcessor.Tasks.BuildGradleProject.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at :0) UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at :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.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by unity_AoXYpwNLifARcA · Sep 16, 2020 at 09:57 AM

@foranie your gradle file must be like this...

 buildscript {
     repositories {
    maven {      url 'https://dl.google.com/dl/android/maven2'     }
         google()
         jcenter()
     }
Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

98 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

What to do with "Undefined symbols for architecture ..." in Xcode for IL2CPP project? 0 Answers

Some scripts not running on device with IL2CPP 3 Answers

App not opening/working after publishing on Google Play Store 4 Answers

il2cppcore.dll did not run properly! "empty project" 2 Answers

No Android APK is made when building 64-bit - IL2CPP error 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges