android引用aar资源

说明:我的计划是引用aar,因此需要配置一点东西

这个项目结构比较简单,需要配置的东西,看起来很清晰,需要的东西,你们自己配置一下就行

1.C:\Users\Windows\Desktop\py\janus-gateway-android-master\build.gradle

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories {
        jcenter()
        maven {
            url 'https://maven.google.com/'
            name 'Google'
        }
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:7.2.1'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        jcenter()
        flatDir {
            dirs 'libs'
        }
        maven {
            url 'https://maven.google.com/'
            name 'Google'
        }
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

  1. C:\Users\Windows\Desktop\py\janus-gateway-android-master\app\build.gradle
apply plugin: 'com.android.application'

android {
    compileSdkVersion 32
    buildToolsVersion "33.0.0"
    defaultConfig {
        applicationId "in.minewave.janusvideoroom"
        minSdkVersion 21
        targetSdkVersion 31
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }

    sourceSets.main {
        jniLibs.srcDir 'libs'
    }
    namespace 'in.minewave.janusvideoroom'

}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })
    implementation 'com.android.support:appcompat-v7:25.3.0'
    implementation 'com.android.support.constraint:constraint-layout:1.0.2'
    testImplementation 'junit:junit:4.12'
    implementation 'com.squareup.okhttp3:okhttp:3.5.0'
    implementation 'com.squareup.okhttp3:logging-interceptor:3.5.0'
    implementation(name:'libwebrtc', ext:'aar')

}

3.C:\Users\Windows\Desktop\py\janus-gateway-android-master\app\libs\libwebrtc.aar

相关推荐

  1. android引用aar资源

    2024-04-12 06:30:03       43 阅读
  2. Android引入aar包的方法

    2024-04-12 06:30:03       48 阅读
  3. Android studio gradle 8.0引用libs目录下的aar

    2024-04-12 06:30:03       31 阅读
  4. Android ANR 总结

    2024-04-12 06:30:03       53 阅读
  5. Android基础-ANR详解

    2024-04-12 06:30:03       32 阅读
  6. uni静态资源引入及css图片图标引用规范

    2024-04-12 06:30:03       74 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-04-12 06:30:03       98 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-04-12 06:30:03       106 阅读
  3. 在Django里面运行非项目文件

    2024-04-12 06:30:03       87 阅读
  4. Python语言-面向对象

    2024-04-12 06:30:03       96 阅读

热门阅读

  1. 负载均衡原理和负载均衡算法代码案例

    2024-04-12 06:30:03       29 阅读
  2. macad.occt解析extentions,tkernel

    2024-04-12 06:30:03       28 阅读
  3. 基于单链表的通讯录C语言实现

    2024-04-12 06:30:03       45 阅读
  4. http与https的区别?

    2024-04-12 06:30:03       35 阅读
  5. 深入理解HTTP/HTTPS协议

    2024-04-12 06:30:03       39 阅读
  6. Linux生态系统:探索Linux的开源世界

    2024-04-12 06:30:03       35 阅读
  7. Gin 相对 标准库 net/http的优势

    2024-04-12 06:30:03       35 阅读
  8. 如何设置MySQL的IP白名单

    2024-04-12 06:30:03       34 阅读
  9. 什么是docker

    2024-04-12 06:30:03       36 阅读