The problem it solved, in this discussion, I gave the solution of the problem: Solution to the problem
I created a project with Android Studio 1.1. With support by the API 19 to 22
But now I'm having problems with compatibility libraries:
import android.support.v4.app.Fragment;
import android.app.Fragment;
I created a Navigation Drawer Activity as a base. I created following a fragment blank.
I simply had to call this new fragment in my Navigation Drawer, or rather in my ActivityMain
in onNavigationDrawerItemSelected
method, but I have a problem with the libraries.
In my ActivityMain
, libraries are: android.support.v4.app.Fragment;
while in the new Fragment Blank I created, the libraries are: import android.app.Fragment;
And of course when I try to interact with objects of type Fragment to maneuver the switch case, I have compatibility problems? between:
import android.app.Fragment;
import android.support.v4.app.Fragment;
What causes all this confusion?
I state that I have done nothing, if not simply create classes.
Where am I wrong?