【发布时间】:2019-06-22 04:38:15
【问题描述】:
我在调试中构建我的项目没有问题。我刚刚安装了一个新的 npm 包(bugsnag)然后做了 react-native 链接,现在我不能再构建它了。我尝试了许多谷歌建议的解决方案,但都没有奏效。
奇怪的部分我试图建立我的项目的备份文件,但它也没有建立同样的错误,所以感觉它与其他东西有关?
错误详情:
> Task :app:processDebugResources
Failed to execute aapt
com.android.ide.common.process.ProcessException: Failed to execute aapt
....
引起:java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException:执行时出错 过程 C:\Users\eless\AppData\Local\Android\Sdk\build-tools\27.0.3\aapt.exe 带参数 {package -f --no-crunch -I C:\Users\eless\AppData\Local\Android\Sdk\platforms\android-27\android.jar -M \?\D:\React\swipe-app-developp\android\app\build\intermediates\manifests\full\debug\AndroidManifest.xml -S D:\React\swipe-app-developp\android\app\build\intermediates\res\merged\debug -m -J \?\D:\React\swipe-app-developp\android\app\build\generated\source\r\debug -F D:\React\swipe-app-developp\android\app\build\intermediates\res\debug\resources-debug.ap_ -D \?\D:\React\swipe-app-developp\android\app\build\intermediates\multi-dex\debug\manifest_keep.txt --custom-package xx.com.xx -0 apk --output-text-symbols \?\D:\React\swipe-app-developp\android\app\build\intermediates\symbols\debug --no-version-vectors}
Error while executing process C:\Users\eless\AppData\Local\Android\Sdk\build-tools\27.0.3\aapt.exe with arguments
app\build.gradle
android {
compileSdkVersion 27
buildToolsVersion '27.0.3'
defaultConfig {
applicationId "xx"
minSdkVersion 16
targetSdkVersion 26
versionCode 24
versionName "1.0.23"
multiDexEnabled true
ndk {
abiFilters "armeabi-v7a", "x86"
}
manifestPlaceholders = [onesignal_app_id: "xx4",
onesignal_google_project_number: "REMOTE"]
}
dependencies {
compile project(':bugsnag-react-native')
compile project(':lottie-react-native')
compile project(':react-native-fast-image')
compile project(':react-native-onesignal')
compile project(':react-native-android-permissions')
compile project(':react-native-fbsdk')
compile project(':react-native-vector-icons')
compile project(':react-native-image-picker')
compile project(':react-native-iap')
compile project(':react-native-camera')
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:appcompat-v7:26.0.2'
compile 'com.facebook.react:react-native:+'
compile 'com.android.support:multidex:1.0.0'
implementation 'com.google.firebase:firebase-core:+'
// From node_modules
}
【问题讨论】:
-
接受任何帮助.. 感谢您的关注。
标签: java android react-native