Java Question SLC: package R does not exist

Edson Freire

Member
Licensed User
Longtime User
I'm trying to compile a library, but I got this error "package R does not exist"



I tried to move R.java to src/(package folder) but I got another error "error: duplicate class" this does not makes sense.

 

DonManfred

Expert
Licensed User
Longtime User
you can not compile a Android Studio (or Eclips) Project with SLC.
A B4A Library usually do not need an R File.

Start with compiling the Android Studio project with Android Studio and create a AAR from it.
Ectract the classes.jar from the aar and use it in your libs folder.
 
Last edited:
Cookies are required to use this site. You must accept them to continue using the site. Learn more…