乐趣区

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

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')
退出移动版