【问题标题】:amplify android gradle build error EEXIST: file already exists, mkdir放大android gradle构建错误EEXIST:文件已存在,mkdir
【发布时间】:2020-05-31 17:42:36
【问题描述】:

我正在尝试关注this tutorial for AWS Amplify Android

我确定我做了那里提到的所有事情。

这就是我的 Gradle 文件的样子。

我的项目 Gradle:

// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
    repositories {
        google()
        jcenter()
        mavenCentral()
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:4.0.0'
        classpath 'com.amplifyframework:amplify-tools-gradle-plugin:1.0.1'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        google()
        jcenter()
        mavenCentral()
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

apply plugin: 'com.amplifyframework.amplifytools'

这是我的应用 Gradle 文件:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 29
    buildToolsVersion "29.0.3"

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }

    defaultConfig {
        applicationId "com.example.demoapp"
        minSdkVersion 21
        targetSdkVersion 29
        versionCode 1
        versionName "1.0"

        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    implementation fileTree(dir: "libs", include: ["*.jar"])
    implementation 'androidx.appcompat:appcompat:1.1.0'
    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
    testImplementation 'junit:junit:4.13'
    androidTestImplementation 'androidx.test.ext:junit:1.1.1'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'

    implementation 'com.amplifyframework:core:1.0.0'
    implementation 'com.amplifyframework:aws-datastore:1.0.0'
    implementation 'com.amplifyframework:aws-api:1.0.0'
}

只要我删除apply plugin: 'com.amplifyframework.amplifytools',它就会成功构建。

我的节点版本是12.17.0。

npm 版本是 16.14.4。

它给了我这个错误:

EEXIST: file already exists, mkdir 'C:\Users\Ram'

Node.js is not installed. Visit https://nodejs.org/en/download/ to install it.

【问题讨论】:

标签: android amazon-web-services aws-amplify aws-appsync


【解决方案1】:

您可以在此处针对我们的 GitHub 存储库将此问题作为问题提交,我们将查看:https://github.com/aws-amplify/amplify-android

【讨论】:

    猜你喜欢
    • 2020-01-23
    • 1970-01-01
    • 1970-01-01
    • 2017-07-29
    • 1970-01-01
    • 1970-01-01
    • 2017-02-04
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多