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导致的

    评论

报告相同问题?

悬赏问题

  • ¥50 导入文件到网吧的电脑并且在重启之后不会被恢复
  • ¥15 (希望可以解决问题)ma和mb文件无法正常打开,打开后是空白,但是有正常内存占用,但可以在打开Maya应用程序后打开场景ma和mb格式。
  • ¥20 ML307A在使用AT命令连接EMQX平台的MQTT时被拒绝
  • ¥20 腾讯企业邮箱邮件可以恢复么
  • ¥15 有人知道怎么将自己的迁移策略布到edgecloudsim上使用吗?
  • ¥15 错误 LNK2001 无法解析的外部符号
  • ¥50 安装pyaudiokits失败
  • ¥15 计组这些题应该咋做呀
  • ¥60 更换迈创SOL6M4AE卡的时候,驱动要重新装才能使用,怎么解决?
  • ¥15 让node服务器有自动加载文件的功能