编译和运行 DKVideoplayer 遇到的问题和解决方法

404 阅读1分钟

Failed to find Build Tools revision 33.0.0

Could not determine the dependencies of task ':dkplayer-sample:mergeDebugAssets'.
> Could not resolve all dependencies for configuration ':dkplayer-sample:debugRuntimeClasspath'.
   > Could not create task ':dkplayer-sample:minifyReleaseWithR8'.
      > Failed to find Build Tools revision 33.0.0

Solution:
确认电脑里面有哪些版本的 build tools, ~/Library/Android/sdk/build-tools .
我的电脑里面有30.0.2,所以可以把project 里面的buildToolsVersion = '33.0.0' 改成 '33.0.3'

project.ext {
    ...
    minSdkVersion = 16
    targetSdkVersion = 31
    compileSdkVersion = 31
    buildToolsVersion = '33.0.2'
    ...
}

refer 1
refer 2