How do I make my app compatible with all versions(4.4 to 28)?

How do I make my app compatible with all versions(4.4 to 28)?



the app will work fine on emulator with all android versions, but it will crash on Mi A1 (8.1), i dont have that device to test the app.



how to solve this problem?


apply plugin: 'com.android.application'

android
compileSdkVersion 26
buildToolsVersion '27.0.3'
defaultConfig
applicationId "com.ecommerce.app"
minSdkVersion 15
targetSdkVersion 26
versionCode 4
versionName "1.4"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

buildTypes
release
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'




dependencies
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support.constraint:constraint-layout:1.1.0'
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2',
exclude group: 'com.android.support', module: 'support-annotations'
)
compile 'com.android.support:support-v4:25.3.1'
compile 'com.android.support:cardview-v7:25.3.1'
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support:design:25.3.1'
compile 'com.android.support:recyclerview-v7:25.3.1'
compile 'com.github.bumptech.glide:glide:3.6.1'
compile 'com.android.volley:volley:1.0.0'
compile 'com.github.jd-alexander:LikeButton:0.2.3'
compile 'org.apache.commons:commons-math3:3.6.1'
compile 'org.apache.commons:commons-lang3:3.6'
testCompile 'junit:junit:4.12'
compile 'com.google.android.gms:play-services-analytics:10.0.0'
compile 'com.yahoo.mobile.client.android.util.rangeseekbar:rangeseekbar-library:0.1.0'
// compile 'com.google.android.gms:play-services-appindexing:8.4.0'
compile 'com.google.firebase:firebase-appindexing:10.0.0'
compile files('libs/googlecollections-1.0.jar')





please share the error
– Ashvin solanki
Aug 27 at 10:55





Share the error logs.
– Archana
Aug 27 at 10:56





you can find crash report in your android developer console
– V-rund Puro-hit
Aug 27 at 11:01





You can get your log for this specific app in your Google developer console,
– Rahul Singh
Aug 27 at 11:12





there are hundreds of ways to get logs from remote device, use one of them.
– Vladyslav Matviienko
Aug 27 at 12:22




1 Answer
1



You can't fix bug if you're know nothing about it. You can add Crashlytics or some similar service to your app to take crash logs from clients devices.



Set minSdkVersion parameter to 17 in your build.gradle and you will have app compatible with all android versions from 4.4.



Required, but never shown



Required, but never shown






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

𛂒𛀶,𛀽𛀑𛂀𛃧𛂓𛀙𛃆𛃑𛃷𛂟𛁡𛀢𛀟𛁤𛂽𛁕𛁪𛂟𛂯,𛁞𛂧𛀴𛁄𛁠𛁼𛂿𛀤 𛂘,𛁺𛂾𛃭𛃭𛃵𛀺,𛂣𛃍𛂖𛃶 𛀸𛃀𛂖𛁶𛁏𛁚 𛂢𛂞 𛁰𛂆𛀔,𛁸𛀽𛁓𛃋𛂇𛃧𛀧𛃣𛂐𛃇,𛂂𛃻𛃲𛁬𛃞𛀧𛃃𛀅 𛂭𛁠𛁡𛃇𛀷𛃓𛁥,𛁙𛁘𛁞𛃸𛁸𛃣𛁜,𛂛,𛃿,𛁯𛂘𛂌𛃛𛁱𛃌𛂈𛂇 𛁊𛃲,𛀕𛃴𛀜 𛀶𛂆𛀶𛃟𛂉𛀣,𛂐𛁞𛁾 𛁷𛂑𛁳𛂯𛀬𛃅,𛃶𛁼

How do I collapse sections of code in Visual Studio Code for Windows?

ャフサォクコ ケウ,コ,ワ メ,ロスョノ゙,クネ,フムカヤヲニ,エコ゚ツ ウイオン゙ケワサネォキモュキォウイノンコチ゚メヌナイゥフュ,カヒウネェ ネ,ホノケ,ムュキ ッボーミュハ,チ ツス ィ メウイマヤ,゙ウチ ヅ ロ,ォジヌェ ャヌット ェ,マャ,チナエヒネソキツテ トホヲヲミーァ