FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
> Could not resolve all task dependencies for configuration ':app:debugCompileClasspath'.
> Could not resolve com.tencent.imsdk:imsdk:5.1.10.
Required by:
project :app > project :tencent_im_plugin
> Could not resolve com.tencent.imsdk:imsdk:5.1.10.
> Could not get resource 'https://dl.google.com/dl/android/maven2/com/tencent/imsdk/imsdk/5.1.10/imsdk-5.1.10.pom'.
> Could not GET 'https://dl.google.com/dl/android/maven2/com/tencent/imsdk/imsdk/5.1.10/imsdk-5.1.10.pom'.
> RSA premaster secret error
> Could not resolve com.tencent.imsdk:imsdk:5.1.10.
> Could not get resource 'https://jcenter.bintray.com/com/tencent/imsdk/imsdk/5.1.10/imsdk-5.1.10.pom'.
> Could not GET 'https://jcenter.bintray.com/com/tencent/imsdk/imsdk/5.1.10/imsdk-5.1.10.pom'.
> RSA premaster secret error
> Could not resolve com.tencent.imsdk:imsdk:5.1.10.
> Could not get resource 'http://maven.aliyun.com/nexus/content/groups/public/com/tencent/imsdk/imsdk/5.1.10/imsdk-5.1.10.pom'.
> Could not GET 'https://maven.aliyun.com/nexus/content/groups/public/com/tencent/imsdk/imsdk/5.1.10/imsdk-5.1.10.pom'.
> RSA premaster secret error
> Could not resolve com.tencent.imsdk:imsdk:5.1.10.
> Could not get resource 'https://storage.flutter-io.cn/download.flutter.io/com/tencent/imsdk/imsdk/5.1.10/imsdk-5.1.10.pom'.
> Could not GET 'https://storage.flutter-io.cn/download.flutter.io/com/tencent/imsdk/imsdk/5.1.10/imsdk-5.1.10.pom'.
解决:
设置as的JDK配置路径,有的AS会自动调整到JRE路径
解决不了
重装java Jdk1.8.0版本
再解决不了
卸载之前的android studio版本,重装android studio