bulubulu_鲸鱼不是鱼 2017-08-29 07:11
浏览 2192

如何使用android studio将指定文件编译到apk中

我现在有一些文件需要编译到apk中,但是不知道如何操作

这个是我需要编译到apk中的文件:
这个是我需要编译到apk中的文件
我希望最终达成的效果:
我希望最终达成的效果
我所使用的android stduio的版本为2.3.3,gradle版本为2.2.3。

我的 build.gradle文件

 apply plugin: 'com.android.application'

android {
    compileSdkVersion 25
    buildToolsVersion "25.0.2"
    defaultConfig {
        applicationId "lnsoft.mobile.xtyth"
        minSdkVersion 21
        targetSdkVersion 25
        versionCode 4
        versionName "1.06"
        //testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
//        multiDexEnabled true
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
//    sourceSets{
//        main{
//            jniLibs.srcDirs=['libs']
//        }
//    }
    aaptOptions.cruncherEnabled = false
    aaptOptions.useNewCruncher = false
}

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:cardview-v7:25.3.1'
    compile 'com.android.support:design:25.3.1'
    compile 'com.android.support:recyclerview-v7:25.3.1'
    compile 'com.android.support:appcompat-v7:25.3.1'
    compile 'org.litepal.android:core:1.6.0'
    compile 'com.alibaba:fastjson:1.1.62.android'
    compile project(path: ':commondialogutils_green')
    compile project(':Android_Validator_master')
    compile project(':pulltorefreshview')
    compile project(':changeskin')
//    compile 'com.android.support:multidex:1.0.1'
}

我该如何操作?

  • 写回答

0条回答

    报告相同问题?

    悬赏问题

    • ¥50 永磁型步进电机PID算法
    • ¥15 sqlite 附加(attach database)加密数据库时,返回26是什么原因呢?
    • ¥88 找成都本地经验丰富懂小程序开发的技术大咖
    • ¥15 如何处理复杂数据表格的除法运算
    • ¥15 如何用stc8h1k08的片子做485数据透传的功能?(关键词-串口)
    • ¥15 有兄弟姐妹会用word插图功能制作类似citespace的图片吗?
    • ¥200 uniapp长期运行卡死问题解决
    • ¥15 latex怎么处理论文引理引用参考文献
    • ¥15 请教:如何用postman调用本地虚拟机区块链接上的合约?
    • ¥15 为什么使用javacv转封装rtsp为rtmp时出现如下问题:[h264 @ 000000004faf7500]no frame?