Who knows the resources where it describes fundamentally creating applications for different versions of android. I encountered a problem, created an application for 4.xx and now it does not start on Android 5.

apply plugin: 'com.android.application' android { compileSdkVersion 21 buildToolsVersion "21.1.0" defaultConfig { applicationId "antonin.juliamusic" minSdkVersion 14 targetSdkVersion 21 versionCode 1 versionName "1.0" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { compile 'com.android.support:design:+' compile 'com.android.support:support-v4:+' compile 'com.sothree.slidinguppanel:library:3.3.0' compile 'com.vk:androidsdk:1.6.7' compile 'com.android.support:cardview-v7:+' compile 'com.android.support:recyclerview-v7:+' compile 'com.android.support:appcompat-v7:+' compile 'com.android.support:design:+' compile 'com.wang.avi:library:1.0.5' compile 'com.nineoldandroids:library:2.4.0' compile 'org.greenrobot:eventbus:3.0.0' compile 'com.squareup:otto:1.3.8' compile 'com.orhanobut:dialogplus:1.11@aar' compile 'com.loopj.android:android-async-http:1.4.5' compile files ('libs/universal-image-loader-1.9.5.jar'); compile fileTree(dir: 'libs', include: ['*.jar']) } 
  • one
    Show the gradle file - YuriySPb
  • what happens when running on android 5 (with what error it closes) or what happens. It does not start — too vague to say for sure why. - pavlofff
  • Installed but not included. Wrote an error in the application - user186301

1 answer 1

Most likely, when creating the project, the same sdk version was specified for both minSdkVersion and targetSdkVersion . You can fix this in the file grad. Here is the link to the documentation .