I am tryng out Android Studio instead of Eclipse. I install it and then start a completely new project and follow the wizard. I add no code of my own.
Then, I right-click to create a new component, a new Fragment:
and choose a new fragment:
and as soon as I do, I see compile errors:
... so I start googling and find out that I need to install and reference support library 4, and that I do. When I check the build.gradle (whatver that is, new to me coming from Eclipse), I see:
but I change that to
because they said so here. After recompiling and all that, the error is still there. I then reference the .jar-file directly, like this:
and again do recompile yada yada, but that doesnt help either.
This behaviour seems very strange to me. What am I missing here? This is the SDK Manager view:
So, what am I missing? Thanks =)
I have already had the following dependency in my build.gradle
implementation 'com.android.support:support-v13:26.0.2'
I have tried all of the following,
But, none of them worked for me.
Finally, I solved it by deleting "/.idea/libraries", and then synced with gradle and built again.