Anyone had problem with spotless? I have uber newb...
# compose
w
Anyone had problem with spotless? I have uber newbie code:https://github.com/Wiktorl4z/dev-challenge/blob/week1_bark/app/src/main/java/com/example/androiddevchallenge/MainActivity.kt and I have an error.
> Task :app:spotlessKotlin FAILED
Can't parse copyright year '', defaulting to 2021
Step 'ktlint' found problem in 'app\src\main\java\com\example\androiddevchallenge\MainActivity.kt':
Error on line: 26, column: 1
Wildcard import
java.lang.AssertionError: Error on line: 26, column: 1
I assume that he has problems with reading the copyright but It's default one..
a
Copy code
Error on line: 26, column: 1
Wildcard import
java.lang.AssertionError: Error on line: 26, column: 1
The problem is
Wildcard import
.
w
ok, line 26 is import
import androidx.compose.foundation.lazy.LazyColumn
it's needed for project 😐 searching for solution but idk for that moment
a
Wildcard import
means
import com.yourpackage.*
and it is obviously pointing to
import androidx.compose.foundation.layout.*
. You can also find many results of solution such as this.
👍 1
b
a wildcard import is something like
import androidx.compose.foundation.lazy.*
spotless or android studio may have corrected it magically without you noticing it
👍 1
try running the command again
w
Thank you @Albert Chang and @BenjO👍