First of all, my gradle.build application:
apply plugin: 'com.android.application' android { compileSdkVersion 'android-L' buildToolsVersion '20.0.0' defaultConfig { applicationId "com.blah.blah" minSdkVersion 16 targetSdkVersion 'L' versionCode 1 versionName "alpha" } ... } dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:support-v4:21.+' compile 'com.android.support:appcompat-v7:21.0.+' compile 'com.google.android.gms:play-services:5.0.77' compile 'com.koushikdutta.ion:ion:1.2.4' }
Anyway, I have a Fragment for NavigationDrawer automatically generated by Android Studio, and all lifecycle methods ( onAttach() , onDetach() , onCreate() , etc.) throw an error "This method does not undo anything for the current purpose assembly, but will be in API level 11 (current target is 1): ". I did not touch the source for the fragment after Android Studio generated it. Why is this and how can I fix it?
android android-5.0-lollipop android-studio android-fragments
Mowdownown
source share