我想在移动和后端两种情况下使用通用模块。在后端模块中,一切正常工作,但我不能在移动上使用通用模块。当我构建移动项目时,我得到了一个错误:Project with path ':common' could not be found in project ':app'
项目树:
kibar
.git
gradle
idea
backend
src
build.gradle
common
src
build.gradle
mobile
.gr
它构建正常,但当我尝试运行它时,我得到了以下错误:
Caused by: org.gradle.api.internal.plugins.PluginApplicationException: Failed to apply plugin [id 'com.android.internal.version-check']
Caused by: java.lang.RuntimeException: Minimum supported Gradle version is 5.6.4. Current version is 5.2.1. If using the gradle w
gradle构建失败,并显示以下消息
Error:Could not create parent directory for lock file C:\Program Files\Android\Android Studio\gradle\gradle-2.14.1\wrapper\dists\gradle-2.14.1-all\8bnwg5hd3w55iofp58khbp6yv\gradle-2.14.1-all.zip.lck
这是我的build.gradle(项目)
// Top-level build file where you can add configuration opt
我正在尝试为所有子项目配置存储库。
我有主build.gradle
buildscript {
repositories {
mavenLocal()
mavenCentral()
google()
jcenter()
...
}
dependencies {
// NOTE: Do not place your application dependencies here; they belong
// in the individual module bui