m0_37707016 2017-03-08 08:28 采纳率: 0%
浏览 1251

Androidstudio编译的App5.几系统上能运行,4.4系统上不行,闪屏就退了求大神们指教

这是我 gradle

android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
useLibrary 'org.apache.http.legacy'

sourceSets {
    main {
        jniLibs.srcDirs = ['libs']
    }
}

/* 。。。。。。。。。*/

//签名
signingConfigs {
    debug {

    }
    release {// 自己的签名文件
        storeFile file("E:\\Apk\\jklc.jks")
        storePassword "123456"
        keyAlias "jklc"
        keyPassword "123456"
    }
}
defaultConfig {
    applicationId "com.jklc.healthyarchives"
    minSdkVersion 16
    targetSdkVersion 24
    versionCode 1
    versionName "1.0"
}


buildTypes {
    debug {
        // 显示Log
        buildConfigField "boolean", "LOG_DEBUG", "true"
        versionNameSuffix "-debug"
        minifyEnabled false
        zipAlignEnabled false
        shrinkResources false
        signingConfig signingConfigs.debug
    }







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

}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:24.2.0'
compile 'com.alibaba:fastjson:1.2.10'
compile 'com.google.code.gson:gson:2.2.4'
compile 'com.squareup.okhttp:okhttp:2.0.0'
compile 'de.greenrobot:eventbus:2.4.0'
compile 'com.facebook.fresco:fresco:0.12.0'
compile 'com.jakewharton:butterknife:5.1.1'
compile files('libs/httpmime-4.1.1.jar')
compile files('libs/Sunflower.jar')
}

  • 写回答

3条回答

  • AslanChen_TheOne 2017-03-08 08:28
    关注

    Androidstudio 可以看到错误日志的,看一下就知道什么问题了,一般都是使用了高版本的Api导致的

    评论

报告相同问题?

悬赏问题

  • ¥100 求数学坐标画圆以及直线的算法
  • ¥100 c语言,请帮蒟蒻写一个题的范例作参考
  • ¥15 名为“Product”的列已属于此 DataTable
  • ¥15 安卓adb backup备份应用数据失败
  • ¥15 eclipse运行项目时遇到的问题
  • ¥15 关于#c##的问题:最近需要用CAT工具Trados进行一些开发
  • ¥15 南大pa1 小游戏没有界面,并且报了如下错误,尝试过换显卡驱动,但是好像不行
  • ¥15 自己瞎改改,结果现在又运行不了了
  • ¥15 链式存储应该如何解决
  • ¥15 没有证书,nginx怎么反向代理到只能接受https的公网网站