This repository has been archived by the owner on Aug 19, 2020. It is now read-only.
Build error in hello-kapt sample #1392
Comments
According to the build scan it can build. There is no issue. It's only a
'visualization' issue.
Do you see at the top of the file in IntelliJ a (I guess it is yellow)
message like "apply new context" or something? Then click it. It should
resolve the red warnings...
…On Mon, Oct 14, 2019, 5:50 PM Igor Ganapolsky ***@***.***> wrote:
Expected Behavior
Project should build in IntelliJ IDE without errrors/warnings.
Make project compatible with IntelliJ IDE
Current Behavior
See screenshot. There is a build warning (*Type mismatch*) in the application
{ } block in build.gradle.kts
Make this warning go away.
Context
Cannot build the sample
Steps to Reproduce (for bugs)
https://gradle.com/s/55hnsqk5xenlu
a) Open project in IntelliJ IDEA
b) View *build.gradle.kts* file
Your Environment
IntelliJ IDEA 2019.3 EAP (Ultimate Edition)
Build #IU-193.4386.10, built on October 8, 2019
IntelliJ IDEA EAP User
Expiration date: November 7, 2019
Runtime version: 11.0.4+10-b517.1 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.15
GC: ParNew, ConcurrentMarkSweep
Memory: 1979M
Cores: 16
[image: Screen Shot 2019-10-14 at 11 40 29 AM]
<https://user-images.githubusercontent.com/201209/66764626-2d006e80-ee78-11e9-814b-facc96bcd775.png>
- Build scan URL: https://gradle.com/s/55hnsqk5xenlu
- gradle --version 5.4
- Version of IntelliJ or Android Studio (in About menu you can copy
version information)
- Version of the Kotlin Plugin used in IntelliJ or Android Studio (in
the Configure Kotlin Plugin Updates preference panel)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1392?email_source=notifications&email_token=ACOBQ67MNKBJXHKZC7CHWQDQOSIL5A5CNFSM4JAQ6OQ2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HRUGJIQ>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACOBQ66NBOLOQQXP354ICEDQOSIL5ANCNFSM4JAQ6OQQ>
.
|
Thanks for the report @IgorGanapolsky. As @StefMa said, this is a IDE problem. It is due to a mismatch in IntelliJ setup between the JDK used for Gradle and the JDK used for the project sources. The script editor can't find This is gradle/gradle#9195 Using the same Java version for Gradle in IntelliJ and your Project SDK in IntelliJ will fix this. Closing, please reopen if the problem persists after applying the above. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Expected Behavior
Project should build in IntelliJ IDE without errrors/warnings.
Make project compatible with IntelliJ IDE
Current Behavior
See screenshot. There is a build warning (Type mismatch) in the
application { }
block in build.gradle.ktsMake this warning go away.
Context
Cannot build the sample
Steps to Reproduce (for bugs)
https://gradle.com/s/55hnsqk5xenlu
a) Open project in IntelliJ IDEA
b) View build.gradle.kts file
Your Environment
IntelliJ IDEA 2019.3 EAP (Ultimate Edition)
Build #IU-193.4386.10, built on October 8, 2019
IntelliJ IDEA EAP User
Expiration date: November 7, 2019
Runtime version: 11.0.4+10-b517.1 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.15
GC: ParNew, ConcurrentMarkSweep
Memory: 1979M
Cores: 16
gradle --version
5.4About
menu you can copy version information)Configure Kotlin Plugin Updates
preference panel)The text was updated successfully, but these errors were encountered: