https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
g

galex

02/26/2019, 10:16 AM
Where did my R.java go when having a sourceset android() ?
r

ribesg

02/26/2019, 11:23 AM
Hey, this is a bug with Android Gradle Plugin. Well not a bug, but something changed in the way it builds
R
in
3.3.0
. This change goes in pair with an Android Studio update. This change has not yet happened in IDEA. You need to rollback to
3.2.1
, then clean everything (
.gradle
,
build
folders, invalidate cache and restart) and your references to
R
should magically work again.
Please see and upvote this answer for the next people in line to lose hours on this issue (I lost 2 hours myself) https://stackoverflow.com/a/54286476/4996236
g

galex

02/26/2019, 12:20 PM
Thank you so much for this, was going crazy
And it does work. Thanks again @ribesg!
r

ribesg

02/26/2019, 12:28 PM
👍