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 comsol稳态求解器 找不到解,奇异矩阵有1个空方程返回的解不收敛。没有返回所有参数步长;pid控制
    • ¥15 怎么让wx群机器人发送音乐
    • ¥15 fesafe材料库问题
    • ¥35 beats蓝牙耳机怎么查看日志
    • ¥15 Fluent齿轮搅油
    • ¥15 八爪鱼爬数据为什么自己停了
    • ¥15 交替优化波束形成和ris反射角使保密速率最大化
    • ¥15 树莓派与pix飞控通信
    • ¥15 自动转发微信群信息到另外一个微信群
    • ¥15 outlook无法配置成功