React-native-config: RN 0.55.4 android build error

Created on 24 May 2018  路  3Comments  路  Source: luggit/react-native-config

The build is failing after updating project to RN ^0.55.4.

I try to do the same in a new clean project with react-native: ~0.55.2 version mentioned here #255

The dependencies' tree following below:

  "dependencies": {
    "axios": "^0.18.0",
    "moment": "^2.22.1",
    "moment-timezone": "^0.5.17",
    "prop-types": "^15.6.1",
    "react": "^16.3.2",
    "react-native": "^0.55.4",
    "react-native-calendars": "^1.19.3",
    "react-native-config": "^0.11.5",
    "react-native-device-info": "^0.21.5",
    "react-native-elements": "^0.19.1",
    "react-native-fbsdk": "^0.7.0",
    "react-native-intl": "^1.0.0",
    "react-native-storage": "^0.2.2",
    "react-native-vector-icons": "^4.6.0",
    "react-navigation": "^2.0.1",
    "react-navigation-redux-helpers": "^1.0.7",
    "react-promise": "^2.0.2",
    "react-redux": "^5.0.7",
    "redux": "^4.0.0",
    "redux-logger": "^3.0.6",
    "redux-saga": "^0.16.0",
    "redux-saga-testing": "^1.0.5"
  },
  "devDependencies": {
    "babel-cli": "^6.26.0",
    "babel-jest": "^22.4.3",
    "babel-polyfill": "^6.26.0",
    "babel-preset-es2016": "^6.24.1",
    "babel-preset-react-native": "^4.0.0",
    "jest": "^22.4.3",
    "react-native-git-upgrade": "^0.2.7",
    "react-test-renderer": "^16.3.2",
    "regenerator-runtime": "^0.11.1",
    "transform-runtime": "^0.0.0"
  }

The compilation output is below:

Merging result:SUCCESS
Merged manifest saved to /home/paneladm/projects/bestdestiny/react-native-app/node_modules/react-native-config/android/build/intermediates/bundles/release/AndroidManifest.xml
:react-native-config:processReleaseManifest (Thread[main,5,main]) completed. Took 0.116 secs.
:react-native-config:processReleaseResources (Thread[main,5,main]) started.
:react-native-config:processReleaseResources
Executing task ':react-native-config:processReleaseResources' (up-to-date check took 0.016 secs) due to:
  Output file /home/paneladm/projects/bestdestiny/react-native-app/node_modules/react-native-config/android/build/intermediates/incremental/processReleaseResources has changed.
  Output file /home/paneladm/projects/bestdestiny/react-native-app/node_modules/react-native-config/android/build/generated/source/r/release has changed.
  Output file /home/paneladm/projects/bestdestiny/react-native-app/node_modules/react-native-config/android/build/generated/source/r/release/com has been removed.
All input files are considered out-of-date for incremental task ':react-native-config:processReleaseResources'.
Starting process 'command '/home/paneladm/Android-sdk/build-tools/23.0.1/aapt''. Working directory: /home/paneladm/projects/bestdestiny/react-native-app/node_modules/react-native-config/android Command: /home/paneladm/Android-sdk/build-tools/23.0.1/aapt package -f --no-crunch -I /home/paneladm/Android-sdk/platforms/android-23/android.jar -M /home/paneladm/projects/bestdestiny/react-native-app/node_modules/react-native-config/android/build/intermediates/manifests/aapt/release/AndroidManifest.xml -S /home/paneladm/projects/bestdestiny/react-native-app/node_modules/react-native-config/android/build/intermediates/res/merged/release -m -J /home/paneladm/projects/bestdestiny/react-native-app/node_modules/react-native-config/android/build/generated/source/r/release --custom-package com.lugg.ReactNativeConfig --non-constant-id -0 apk --output-text-symbols /home/paneladm/projects/bestdestiny/react-native-app/node_modules/react-native-config/android/build/intermediates/bundles/release --no-version-vectors
:react-native-config:processReleaseResources FAILED
:react-native-config:processReleaseResources (Thread[main,5,main]) completed. Took 0.123 secs.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-config:processReleaseResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt

All 3 comments

@francisrod01 did you ever figure out a solution or workaround to this?

I'll close it for now, because I don't have free time this month.

Seeing this issue 0.56

Was this page helpful?
0 / 5 - 0 ratings