Add pre-built .so files in project using Android Gradle plugin 0.7.3

前端 未结 2 626
星月不相逢
星月不相逢 2020-11-30 01:12

Well after a long time the support to add pre-built .so files in an Android project has been added in Android Gradle plugin 0.7.3. But unlike me a lot of people are still us

2条回答
  •  醉话见心
    2020-11-30 02:04

    I finally got this code implemenated..

    buildscript {
     repositories {
        mavenCentral()
     }
     dependencies {
         classpath 'com.android.tools.build:gradle:0.7.3'
     }
    }
    apply plugin: 'android'
    
    repositories {
      mavenCentral()
    }
    
    android {
    
    compileSdkVersion 19
    buildToolsVersion "19.0.1"
    
    defaultConfig {
        minSdkVersion 14
        targetSdkVersion 19
    }
    
    productFlavors {
        x86 {
            ndk {
                abiFilter "x86"
            }
        }
        arm {
            ndk {
                abiFilters "armeabi-v7a", "armeabi"
            }
        }
    }
    packagingOptions {
        exclude 'META-INF/DEPENDENCIES'
        exclude 'META-INF/NOTICE'
        exclude 'META-INF/LICENSE'
        exclude 'META-INF/license.txt'
        exclude 'META-INF/notice.txt'
    }
    }
    

提交回复
热议问题