Executing tasks: [:app:generateDebugSources, :app:mockableAndroidJar, :app:prepareDebugUnitTestDependencies, :app:generateDebugAndroidTestSources]
Configuration on demand is an incubating feature.
Incremental java compilation is an incubating feature.
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:checkDebugManifest
:app:preReleaseBuild UP-TO-DATE
:app:prepareComAndroidSupportAnimatedVectorDrawable2531Library
:app:prepareComAndroidSupportAppcompatV72531Library
:app:prepareComAndroidSupportCardviewV72340Library
:app:prepareComAndroidSupportDesign2531Library
:app:prepareComAndroidSupportRecyclerviewV72531Library
:app:prepareComAndroidSupportSupportCompat2531Library
:app:prepareComAndroidSupportSupportCoreUi2531Library
:app:prepareComAndroidSupportSupportCoreUtils2531Library
:app:prepareComAndroidSupportSupportFragment2531Library
:app:prepareComAndroidSupportSupportMediaCompat2531Library
:app:prepareComAndroidSupportSupportV42531Library
:app:prepareComAndroidSupportSupportVectorDrawable2531Library
:app:prepareComAndroidSupportTransition2531Library
:app:prepareComGithubPaolorotoloAppintro400Library
:app:prepareComGithubRey5137Material124Library
:app:prepareComGoogleAndroidGmsPlayServicesBase1101Library
:app:prepareComGoogleAndroidGmsPlayServicesBasement1101Library
:app:prepareComGoogleAndroidGmsPlayServicesTasks1101Library
:app:prepareComGoogleFirebaseFirebaseAnalytics1101Library
:app:prepareComGoogleFirebaseFirebaseAnalyticsImpl1101Library
:app:prepareComGoogleFirebaseFirebaseAppindexing1101Library
:app:prepareComGoogleFirebaseFirebaseCommon1101Library
:app:prepareComGoogleFirebaseFirebaseCore1101Library
:app:prepareComGoogleFirebaseFirebaseCrash1101Library
:app:prepareComGoogleFirebaseFirebaseIid1101Library
:app:prepareComMcxiaokeVolleyLibraryAar100Library
:app:prepareComMikhaellopezCircularimageview302Library
:app:prepareDebugDependencies
:app:compileDebugAidl
:app:compileDebugRenderscript UP-TO-DATE
:app:generateDebugBuildConfig FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:generateDebugBuildConfig'.
> java.io.FileNotFoundException: C:\....\app\build\generated\source\buildConfig\debug\ \BuildConfig.java (The system cannot find the path specified)
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 1.668 secs
无法理解出了什么问题。如果我能看到任何人有任何指示? 我到目前为止所做的是改变了支持库(目前使用25.3.1)的版本和app的build.gradle中的项目配置。下面是我的build.gradle。
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion "25.0.3"
defaultConfig {
applicationId "com.example.some.package"
minSdkVersion 14
targetSdkVersion 26
versionCode 5
versionName "5.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support:recyclerview-v7:25.3.1'
compile 'com.android.support:design:25.3.1'
compile 'com.google.code.gson:gson:2.7'
compile 'com.google.firebase:firebase-analytics:11.0.1'
compile 'com.google.firebase:firebase-appindexing:11.0.1'
compile 'com.google.firebase:firebase-crash:11.0.1'
compile 'com.mikhaellopez:circularimageview:3.0.2'
compile 'com.github.rey5137:material:1.2.4'
compile 'com.github.paolorotolo:appintro:4.0.0'
compile 'com.mcxiaoke.volley:library-aar:1.0.0'
}
apply plugin: 'com.google.gms.google-services'
我已经尝试构建我从版本控制中下载的相同版本,但仍然给我同样的错误。我试图构建一些不同的项目,并且它已成功构建。
如果是的话,任何人都会遇到这个问题你是怎么解决这个问题的?我应该看哪个指针?
提前致谢。 - 拉胡尔