关于android:gradle-安装例子是-exoplayer

45次阅读

共计 686 个字符,预计需要花费 2 分钟才能阅读完成。

gradle-wrapper.properties

distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip

build.gradle(project)

去掉

allprojects {


  project.ext {exoPlayerVersion = "2.8.1"}
}

批改

buildscript {
  ext.kotlin_version = '1.2.70'

  dependencies {classpath 'com.android.tools.build:gradle:3.2.1'}
}

替换为

gradle-wrapper.properties

distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-all.zip

build.gradle(project)

批改

buildscript {
  ext.kotlin_version = '1.4.20'

  dependencies {classpath "com.android.tools.build:gradle:4.1.2"}
}

Setting.gradle

gradle.ext.exoplayerRoot = '/Users/jzd/Movies/ExoPlayer'
gradle.ext.exoplayerModulePrefix = 'exoplayer-'
apply from: new File(gradle.ext.exoplayerRoot, 'core_settings.gradle')

正文完
 0