在学习android + opencv遇到的各种问题

1.This version of Android Studio cannot open this project, please retry with Android Studio 3.5 or newer
出现这个问题是因为使用的Gradle版本太高,只需要将gradle降级就可以

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

2.Unknown host ‘jcenter.bintray.com’. You may need to adjust the proxy settings in Gradle
需要在这两个地方架上maven

buildscript {
	repositories {
	maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/'}
	google()
	jcenter()
	}
}
allprojects {
	repositories {
	maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/'}
	google()
	jcenter()
	}
}

猜你喜欢

转载自blog.csdn.net/qq_42065048/article/details/106326515
今日推荐