错误:在指定路径中找不到AndroidManifest.xml文件

时间:2018-10-27 11:50:04

标签: android android-studio

我正在从API版本23-26升级Android。到目前为止,一切都很好,如下所示。

  

错误:在指定路径中找不到AndroidManifest.xml文件

我怀疑这是由于Gradle的最新版本或Android插件引起的。有任何提示或想法吗?

apply plugin: 'com.android.application'


repositories {
    maven { url 'https://maven.fabric.io/public' }
}
android {
    compileSdkVersion 26
    flavorDimensions "default"
   // buildToolsVersion "26.0.0"
    defaultConfig {

        javaCompileOptions {
            annotationProcessorOptions {
                arguments = [
                        'androidManifestFile': 'app\\build\\intermediates\\merged_manifests\\debug\\processDebugManifest\\merged\\AndroidManifest.xml'
                ]
            }
        }
        applicationId "jp.co.mindpiece"
        minSdkVersion 19
        targetSdkVersion 26
        versionCode 1
        versionName "1.0"
        multiDexEnabled true
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
dependencies {

    implementation fileTree(include: ['*.jar'], dir: 'libs')
    androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })
    implementation 'com.android.support:appcompat-v7:26.1.0'

    implementation 'com.android.support:design:26.1.0'
    implementation files('libs/YouTubeAndroidPlayerApi.jar')

    implementation 'com.android.support:recyclerview-v7:26.0.0'

    annotationProcessor 'org.androidannotations:androidannotations:4.0.0'
    implementation 'org.androidannotations:androidannotations-api:4.0.0'
    implementation 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'
    implementation 'com.squareup.sqlbrite:sqlbrite:0.5.0'
    testImplementation 'junit:junit:4.12'
    implementation 'com.j256.ormlite:ormlite-android:4.48'
    implementation 'com.google.code.gson:gson:2.4'
    implementation 'com.google.guava:guava:20.0'
    implementation 'com.facebook.android:facebook-android-sdk:4.0.0'
    implementation 'com.google.firebase:firebase-messaging:10.2.1'
    implementation 'com.google.firebase:firebase-crash:10.0.1'
    implementation 'com.google.firebase:firebase-core:10.0.1'
    implementation('com.twitter.sdk.android:twitter:2.2.0@aar') {
        transitive = true;
    }
    //implementation project(':android-pdf-viewer')
    implementation 'com.github.barteksc:android-pdf-viewer:3.1.0-beta.1'
    implementation project(':coverflow')
    implementation 'org.lucasr.twowayview:twowayview:0.1.4'
}

0 个答案:

没有答案