Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can not run application below lollipop

I am working with android studio .My application working fine in lollipop devices but when i run application in below lollipop devices it gives me given below error message. I have also tried with this answer

In case of problem, please repackage it with jarjar to change the class packages Warning:Dependency xpp3:xpp3:1.1.4c is ignored for release as it may be conflicting with the internal version provided by Android. In case of problem, please repackage it with jarjar to change the class packages Warning:Dependency xpp3:xpp3:1.1.4c is ignored for debug as it may be conflicting with the internal version provided by Android.

My build.gradle is:

    apply plugin: 'com.android.application'

    android {
    compileSdkVersion 22
    buildToolsVersion "22.0.1"

    defaultConfig {
        applicationId "com.mypackagename"
        minSdkVersion 14
        targetSdkVersion 22
        versionCode 1
        versionName "1.0"
        multiDexEnabled true
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'),   'proguard-rules.pro'
        }
    }
    }

    dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:22.0.0'
    compile 'com.android.support:recyclerview-v7:21.0.+'
    compile project(':library')

    compile 'com.loopj.android:android-async-http:1.4.7'
    compile 'com.googlecode.libphonenumber:libphonenumber:7.0.5'
    compile 'com.afollestad:material-dialogs:0.7.4.2'

    //For XMPP
    compile 'org.igniterealtime.smack:smack-android:4.1.0'
    // Optional for XMPPTCPConnection
    compile 'org.igniterealtime.smack:smack-tcp:4.1.0'
    // Optional for XMPP-IM (RFC 6121) support (Roster, Threaded Chats, …)
    compile 'org.igniterealtime.smack:smack-im:4.1.0'
    // Optional for XMPP extensions support
    compile 'org.igniterealtime.smack:smack-extensions:4.1.0'

    compile 'com.android.support:multidex:1.0.1'

    /*  compile "org.igniterealtime.smack:smack-android:4.1.0-rc1"
            // Optional for XMPPTCPConnection
            compile "org.igniterealtime.smack:smack-tcp:4.1.0-rc1"
            // Optional for XMPP-IM (RFC 6121) support (Roster, Threaded Chats, …)
            compile "org.igniterealtime.smack:smack-im:4.1.0-rc1"
            // Optional for XMPP extensions support
            compile "org.igniterealtime.smack:smack-extensions:4.1.0-rc1"
            compile "org.igniterealtime.smack:smack-tcp:4.1.0-alpha6"*/

}
like image 689
Mahi Avatar asked Jun 25 '15 11:06

Mahi


People also ask

How to run Android apps on Windows 7/8/10?

With this software, users of Windows 7/8/8.1 and 10 can also run Android apps on their Windows-only computers and laptops by configuring Android Lollipop as a dual-boot. AMIDuOS is available as a free test version package for 30 days. The software costs $15 (£9.5) for users who wish to run Android Lollipop on their Windows PCs.

How to install Xposed installer on Android Lollipop?

UPDATE: For Android Lollipop, please follow how to install Xposed Installer on Lollipop instead! Step 1. Download the latest version of Xposed Installer and Root Cloak apps. Step 2. Install both apps. You may have to check “Unknown Sources” in Settings->Security. Step 3. Run Xposed Installer app first. Step 4. Choose “Framework”. Step 5.

Why is my battery life so bad on Lollipop?

In general, Lollipop is supposed to have improved battery life across the board, so if you’re still having problems, it’s most likely due to some rogue app sapping background resources or because your version of Android 5.0 has been installed on top of updates which were installed upon updates.


1 Answers

you can add the code below in your build.gradle file. It work for me:

configurations {
    all*.exclude group: 'xpp3', module: 'xpp3'
}
like image 149
sondt87 Avatar answered Sep 22 '22 02:09

sondt87