实际上几个小时前我的项目没有错误,但我不知道在不知不觉中发生了什么变化,现在我得到了以下错误 - " 错误:(36,0)带路径'的项目:easyAndroidAnimationsLibrary'无法在根项目' wikiReviews' "中找到。我用谷歌搜索并检查我的项目层次结构,gradle文件,设置文件一切似乎都没问题,但无法追踪真正的问题。请参阅下图以检查层次结构 -
我的build.gradle是 -
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion '23.0.3'
defaultConfig {
applicationId "com.myleomo.wikiReviews"
minSdkVersion 15
targetSdkVersion 23
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE-FIREBASE.txt'
exclude 'META-INF/NOTICE'
}
dexOptions {
javaMaxHeapSize "4g"
}
}
dependencies {
compile project(':easyAndroidAnimationsLibrary')
compile project(':liveSdk')
compile project(':main')
compile project(':zbarSample')
compile project(':stickyHeaderLibrary')
compile project(':starBar')
compile project(':facebookSDK')
compile project(':library')
compile project(':ffmpeg4android_lib')
compile project(':socialNetworkingLib')
compile 'com.google.android.gms:play-services:9.6.1'
compile files('libs/nmdp_speech_kit.jar')
compile files('libs/AndroidSwipeLayout-v1.1.8.jar')
compile group: 'commons-logging', name: 'commons-logging', version: '1.2'
compile files('libs/CWAC-SackOfViewsAdapter.jar')
compile files('libs/devsmartandroid.jar')
compile group: 'com.google.api-client', name: 'google-api-client', version: '1.6.0-beta'
compile files('libs/google-api-services--v1-1.3.0-beta.jar')
compile files('libs/httpclient-4.4.jar')
compile group: 'oauth.signpost', name: 'signpost-commonshttp4', version: '1.2'
compile group: 'oauth.signpost', name: 'signpost-core', version: '1.2.1.2'
compile group: 'oauth.signpost', name: 'signpost-jetty6', version: '1.2.1.1'
compile 'com.android.support:multidex:1.0.0'
'4.4-alpha1'
compile 'com.squareup.picasso:picasso:2.4.0'
compile 'com.google.android.gms:play-services-gcm:8.4.0'
compile 'org.apache.httpcomponents:httpclient:4.5'
compile 'org.apache.httpcomponents:httpcore:4.4.1'
compile 'org.apache.httpcomponents:httpmime:4.3.5'
version: '4.3.5.1'
compile('org.apache.httpcomponents:httpmime:4.3')
{
exclude module: "httpclient"
}
}
buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:1.5.0'
}
repositories {
jcenter()
}
}
allprojects {
repositories {
jcenter()
}
}
以下是我的顶级版本。的gradle -
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.5.0'
}
}
allprojects {
repositories {
jcenter()
}
}
以下是我的settings.gradle -
include ':easyAndroidAnimationsLibrary'
include ':facebookSDK'
include ':liveSdk'
include ':socialNetworkingLib'
include ':starBar'
include ':stickyHeaderLibrary'
include ':zbarSample'
include ':ffmpeg4android_lib'
include ':library'
include ':main'
include ':wikiReviews'
如果我能为此提供更多信息,请告诉我。谢谢。
答案 0 :(得分:0)
你的项目应该是wikiReviews。 我猜你的项目从android工作室加载的方式可能是错误的