将android依赖项从远程转换为本地文件

时间:2018-06-11 21:41:03

标签: android android-studio gradle

我创建了Android Studio项目。

我有一些来自远程源的依赖(maven,jcenter ..etc)

我想将此项目移至无法使用互联网连接的受限环境。

我不想在缓存上进行中继,我想将依赖项从远程文件更改为本地文件。

示例:

自:

implementation 'com.android.support:appcompat-v7:27.1.1'

要:

implementation files('libs/appcompat-v7.jar')

但是,我无法找到我的依赖jar文件。

我的依赖项(模块:应用程序):

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])

    implementation 'com.android.support:appcompat-v7:27.1.1'
    implementation 'com.android.support:support-v4:27.1.1'
    implementation 'com.android.support:recyclerview-v7:27.1.1'
    implementation 'com.android.support:cardview-v7:27.1.1'

    implementation 'com.android.support.constraint:constraint-layout:1.1.0'

    implementation 'com.google.firebase:firebase-messaging:15.0.2'

    implementation 'com.google.firebase:firebase-database:15.0.1'
    implementation 'com.google.firebase:firebase-firestore:16.0.0'

    implementation 'com.google.android.gms:play-services-location:15.0.1'

    implementation 'com.jakewharton:butterknife:8.8.1'
    annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
}

我的依赖项(项目级别):

dependencies {
    classpath 'com.android.tools.build:gradle:3.1.3'
    classpath 'com.google.gms:google-services:3.2.1'
    classpath "io.realm:realm-gradle-plugin:5.0.0"
}

0 个答案:

没有答案
相关问题