Fixed
Status Update
Comments
xa...@google.com <xa...@google.com>
ch...@google.com <ch...@google.com>
al...@google.com <al...@google.com>
th...@gmail.com <th...@gmail.com> #2
Fixed in Beta 7.
Thanks
Thanks
[Deleted User] <[Deleted User]> #3
<purged>
ch...@google.com <ch...@google.com> #4
#2 Thanks for your verification!
#3 Could you please elaborate what doesn't work for you?
#3 Could you please elaborate what doesn't work for you?
mo...@gmail.com <mo...@gmail.com> #5
what i can do with demodep.zip ?
ke...@gmail.com <ke...@gmail.com> #6
This issue is still present on the official release of Android Studio 3.0:
Android Studio 3.0
Build #AI-171.4408382, built on October 20, 2017
JRE: 1.8.0_152-release-915-b08 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Mac OS X 10.13.1
This happens sometimes after I do a Gradle sync with my android project that support kotlin, and I haven't found a way to reproduce it every time. I usually solved it by doing a Gradle sync again.
When I go to any of my kotlin source code when this issue arises, I get a yellow warning like bar at the top of the code editor saying "Kotlin not configured" though it is actually configured and I can write and build kotlin successfully before. When this happens, I also get errors in the source code because the editor might think I'm writing Java code.
Android Studio 3.0
Build #AI-171.4408382, built on October 20, 2017
JRE: 1.8.0_152-release-915-b08 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Mac OS X 10.13.1
This happens sometimes after I do a Gradle sync with my android project that support kotlin, and I haven't found a way to reproduce it every time. I usually solved it by doing a Gradle sync again.
When I go to any of my kotlin source code when this issue arises, I get a yellow warning like bar at the top of the code editor saying "Kotlin not configured" though it is actually configured and I can write and build kotlin successfully before. When this happens, I also get errors in the source code because the editor might think I'm writing Java code.
ch...@google.com <ch...@google.com> #7
#6 What version of Android Gradle Plugin do you use in your project?
ke...@gmail.com <ke...@gmail.com> #8
3.0.0
I found this line
classpath 'com.android.tools.build:gradle:3.0.0'
in my dependencies
I found this line
classpath 'com.android.tools.build:gradle:3.0.0'
in my dependencies
ch...@google.com <ch...@google.com> #9
Re #8, it is likely that kotlin is not configured properly with some modules in your project.
Please make sure that every module that contains kotlin source code - (not just app module) has applied kotlin plugin in Gradle build file, and also has dependencies on kotlin library.
i.e. "apply plugin: 'kotlin-android'"
and in dependencies block, there is something like "implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"".
If you have already done this, please share more details about your project setup so I can try to reproduce the issue. Thanks!
Please make sure that every module that contains kotlin source code - (not just app module) has applied kotlin plugin in Gradle build file, and also has dependencies on kotlin library.
i.e. "apply plugin: 'kotlin-android'"
and in dependencies block, there is something like "implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"".
If you have already done this, please share more details about your project setup so I can try to reproduce the issue. Thanks!
ke...@gmail.com <ke...@gmail.com> #10
The Module App is my only module. I found "implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"" and "apply plugin: 'kotlin-android'" in my build.gradle for Module App.
This issue DOES NOT affect me permanently but randomly every time I did a gradle sync. The last time it happens is when I changed my buildToolsVersion from "27.0.0" to "27.0.1" then AS informed me to do a gradle sync for it to take effect and I did. After a gradle sync the issue appeared but it disappeared immediately after I did a gradle sync again. I've encountered this issue multiple times. EVERY TIME it's associated with gradle sync
I haven't checked if I can build the project successfully when this issue arises but indeed I saw lots of errors from the lint check for my kotlin source code files so I basically can't work on this project until I did a gradle sync again to fix this issue
In my build.gradle file for my app module:
compileSdkVersion 27
buildToolsVersion "27.0.1"
minSdkVersion 15
targetSdkVersion 27
build.gradle file for my whole project:
ext.kotlin_version = '1.1.51'
That's all the information that I think is useful for you in my build script. I used all default settings except that I added Kotlin support when I set up the project
This issue DOES NOT affect me permanently but randomly every time I did a gradle sync. The last time it happens is when I changed my buildToolsVersion from "27.0.0" to "27.0.1" then AS informed me to do a gradle sync for it to take effect and I did. After a gradle sync the issue appeared but it disappeared immediately after I did a gradle sync again. I've encountered this issue multiple times. EVERY TIME it's associated with gradle sync
I haven't checked if I can build the project successfully when this issue arises but indeed I saw lots of errors from the lint check for my kotlin source code files so I basically can't work on this project until I did a gradle sync again to fix this issue
In my build.gradle file for my app module:
compileSdkVersion 27
buildToolsVersion "27.0.1"
minSdkVersion 15
targetSdkVersion 27
build.gradle file for my whole project:
ext.kotlin_version = '1.1.51'
That's all the information that I think is useful for you in my build script. I used all default settings except that I added Kotlin support when I set up the project
ch...@google.com <ch...@google.com> #11
Re #10, thank you for your information.
This is a different issue than the one in this post, the original problem was between inter-module dependencies.
I filed a new issue based on your feedback,issuetracker.google.com/issues/69165920 .
Any update will be posted there and please add any additional information there as well.
Thanks!
This is a different issue than the one in this post, the original problem was between inter-module dependencies.
I filed a new issue based on your feedback,
Any update will be posted there and please add any additional information there as well.
Thanks!
Description
Build #AI-171.4333198, built on September 13, 2017
JRE: 1.8.0_152-release-915-b01 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Mac OS X 10.12.6
Version of Gradle Plugin: 2.3.3
Version of Gradle: 4.1
Steps to Reproduce (cd attachments - demodep.zip) :
1. Android app depends on Android library depends on Java library
2. The Java library depends on some Java libraries (f.e. : Kotlin, Gson)
Problems :
1. AS reports that Kotlin is not configured.
2. In the IDE, the dependencies of the Java library are not found neither in the app nor in the Android library.
Remarks :
- The app can be compiled and run without errors.
- If I use the Gradle Plugin 3.0.0-beta6 : no more issues