在學習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()
	}
}
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章