https://kotlinlang.org logo
#android
Title
# android
j

jurajsolarml

12/03/2018, 1:50 PM
Hello,please help.AS 3.2.1,Kotlin,Gradle 5.0.I'm writing a mistake. How do I fix it? Thank you Cause: org.jetbrains.plugins.gradle.tooling.util.ModuleComponentIdentifierImpl.getModuleIdentifier()Lorg/gradle/api/artifacts/ModuleIdentifier;
c

codeJENNerator

12/03/2018, 1:50 PM
you need to upgrade AS to 3.3+(or preferably 3.4)
j

jurajsolarml

12/03/2018, 1:57 PM
java.lang.Throwable: Assertion failed: Duplicate bundled template Gradle Build Script with wrapper.gradle [jarfile/C:/Program%20Files/Android/Android%20Studio/plugins/gradle/lib/resources_en.jar!/fileTemplates/internal/Gradle Build Script with wrapper.gradle.ft, jarfile/C:/Program%20Files/Android/Android%20Studio/plugins/gradle/lib/gradle-common.jar!/fileTemplates/internal/Gradle Build Script with wrapper.gradle.ft]
upgrade 3.4
Again the error is the whole day: (
Calling mockable JAR artifact transform to create file: C:\Users\juraj\.gradle\caches\transforms-1\files-1.1\android.jar\5c755a0ad643327fcd9b88fcc51517df\android.jar with input C:\Users\juraj\AppData\Local\Android\Sdk\platforms\android-28\android.jar
15:10 Gradle sync failed: tried to access method kotlin.collections.ArraysKt___ArraysKt.copyOfRange([Ljava/lang/Object;II)[Ljava/lang/Object; from class kotlin.reflect.jvm.internal.calls.CallerImpl$Method$Instance (43 s 364 ms)
These errors list me: ((
c

codeJENNerator

12/03/2018, 2:22 PM
These messages aren't very helpful on their own. It could be any number of issues. Can you link to your project or a sample project with the same issue?
j

jurajsolarml

12/03/2018, 2:25 PM
yes,moment
c

codeJENNerator

12/03/2018, 2:34 PM
The build script, shows 3.2.1 as the Android Gradle Plugin version. That needs to be upgraded too
j

jurajsolarml

12/03/2018, 2:34 PM
file is sent, in direct message
Yes, I have it
gradle:3.3.0-alpha01' upgrade
c

codeJENNerator

12/03/2018, 2:38 PM
or 3.3.0-rc01 is preferred
there are some regressions in the alphas that cause problems with gradle 5.0
j

jurajsolarml

12/03/2018, 2:43 PM
ok
do you mean this 'android.arch.navigationnavigation runtime ktx1.0.0-alpha07' ?
c

codeJENNerator

12/03/2018, 2:47 PM
I don't know about that one.
com.android.tools.build:gradle:3.2.1
is the one I heard has problems with Gradle 5.0
j

jurajsolarml

12/03/2018, 2:49 PM
ok, I've upgraded it
c

codeJENNerator

12/03/2018, 2:49 PM
If you have any more problems after that, I'm out of ideas. 🤷
j

jurajsolarml

12/03/2018, 2:52 PM
The error is still written
The bug was not resolved
15:51 Gradle sync failed: tried to access method kotlin.collections.ArraysKt___ArraysKt.copyOfRange([Ljava/lang/Object;II)[Ljava/lang/Object; from class kotlin.reflect.jvm.internal.calls.CallerImpl$Method$Instance (26 s 249 ms)
c

codeJENNerator

12/03/2018, 3:02 PM
Ok. I'm guessing one of your other dependencies is not compatible, but I'm not sure which one
j

jurajsolarml

12/03/2018, 3:05 PM
ok, i want to ask when i want to edit a gradle, erase me a letter as i do it
when I want to add something, it deletes it