cmd给出com.android.ide.common.process.ProcessException:无法执行aapt erro

时间:2018-06-02 13:33:50

标签: android react-native firebase-notifications react-native-firebase react-native-fcm

我想将react-native-fcm用于google firebase推送通知,但是当我运行react-native run-android时,它会给我这个错误 com.android.ide.common.process.ProcessException:无法执行aapt

我的反应原生版本: “本土反应”:“0.55.4” fcm版本: “react-native-fcm”:“^ 15.0.2”

android => bulde.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:2.2.3'
        classpath 'com.google.gms:google-services:3.0.0'

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

allprojects {
    repositories {
        mavenLocal()
        jcenter()
        maven {
            // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
            url "$rootDir/../node_modules/react-native/android"
        }
    }
}

机器人/应用=> buld.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:2.2.3'
        classpath 'com.google.gms:google-services:3.0.0'

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

allprojects {
    repositories {
        mavenLocal()
        jcenter()
        maven {
            // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
            url "$rootDir/../node_modules/react-native/android"
        }
    }
}

settings.gradle

rootProject.name = 'Notif'
include ':react-native-fcm'
project(':react-native-fcm').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-fcm/android')

include ':app'

我在android / app文件夹中链接了google-services.json

问题在哪里,我该如何解决?

0 个答案:

没有答案