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')

black_pearl
79 声望5 粉丝

火星时代, 未来是太空