Issue
I have an error problem with compileKotlin in IntelliJ IDEA. Tried changing the previous jvm or java version but still having the error as shown. can anyone help me solve this problem. please guysss...
Solution
Does App.kt have this at the top?
package kotlin.kotlin.unit.test
You'll get that Only the Kotlin standard library is allowed to use the 'kotlin' package error if you do that - your package names can't start with kotlin.. Just use com.example.coolapps or something if you don't have your own domain.
If you rename it, Android Studio will complain that the package name doesn't match the file's location (the package needs to match the folder structure - see in the path it's currently kotlin/kotlin/unit/test) but if you Alt+Enter or click the light bulb icon, it'll offer to move it to com/example/coolapps for you
Answered By - cactustictacs

0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.