I wanted to import some projects from Eclipse to Android Studio, I've already used the option where you export it as a .gradle file and open it in the Studio.
But I also tried a method where I create a new project in Studio and the copy the main_activity.java and the important files in the res folder.
But then when I open the main_activity.java, it immediatly gives me an error. Could not resolve R I've already searched for an answer and somebody came up with adding import android.R; or import com.example.package; the first one works for the 'R' issue but then Gives me an error in which it says that setContentView cannot be resolved. And the second line doesn't do anything.
I faced that problem too, Do the following things,
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With