Skip to content

error: invalid file path. Can't run in android emulator #273

Description

@Yamilquery

Hi guys. I have problems to run my application in Android emulator.

package.json

{
  "name": "remepe_native",
  "version": "0.0.1",
  "description": "Hello Expo!",
  "author": null,
  "private": true,
  "main": "node_modules/expo/AppEntry.js",
  "scripts": {
    "start": "node node_modules/react-native/local-cli/cli.js start",
    "test": "node_modules/.bin/jest",
    "postinstall": "rndebugger-open --expo"
  },
  "rnpm": {
    "assets": [
      "./assets/fonts/"
    ]
  },
  "dependencies": {
    "@absinthe/socket": "^0.1.9",
    "@absinthe/socket-apollo-link": "^0.1.10",
    "apollo-cache-inmemory": "^1.1.0",
    "apollo-client": "^2.0.2",
    "apollo-client-preset": "^1.0.2",
    "apollo-link": "^1.0.3",
    "apollo-link-context": "^1.0.1",
    "apollo-link-http": "^1.1.0",
    "apollo-link-phx-ws": "^0.3.4",
    "apollo-link-set-context": "^0.5.4",
    "apollo-phoenix-websocket": "^0.6.2",
    "phoenix": "^1.3.0",
    "apollo-utilities": "^1.0.3",
    "babel-plugin-transform-decorators-legacy": "^1.3.4",
    "enzyme": "^2.9.1",
    "expo": "21.0.2",
    "jsonpack": "^1.1.5",
    "lodash": "^4.17.4",
    "moment": "^2.18.1",
    "graphql": "^0.12.3",
    "graphql-tag": "^2.5.0",
    "prop-types": "^15.5.10",
    "react": "16.0.0-alpha.12",
    "react-apollo": "^2.0.1",
    "react-native": "https://github.com/expo/react-native/archive/sdk-21.0.2.tar.gz",
    "react-native-background-task": "^0.2.1",
    "react-native-config": "^0.6.0",
    "react-native-keep-awake": "^2.0.5",
    "react-native-keyboard-aware-scroll-view": "^0.3.0",
    "react-native-loading-spinner-overlay": "^0.5.2",
    "react-native-masked-text": "^1.6.2",
    "react-native-qrcode-svg": "^5.0.2",
    "react-native-router-flux": "^4.0.0-beta.18",
    "react-native-slider": "^0.11.0",
    "react-native-svg": "^5.4.1",
    "react-native-text-input-mask": "0.5.2",
    "react-navigation": "^1.0.0-beta.14",
    "react-redux": "^5.0.6",
    "react-router": "^4.1.2",
    "react-router-dom": "^4.1.2",
    "react-router-native": "^4.1.1",
    "react-router-redux": "next",
    "redux": "^3.7.2",
    "redux-form": "^7.0.3",
    "redux-immutable-state-invariant": "^2.0.0",
    "redux-logger": "^3.0.6",
    "redux-mock-store": "^1.2.3",
    "redux-observable": "^0.15.0",
    "redux-persist": "^4.10.1",
    "redux-persist-transform-encrypt": "^1.0.2",
    "rn-why-did-you-update": "^0.0.8",
    "rxjs": "^5.4.3",
    "sentry-expo": "^1.6.0",
    "subscriptions-transport-ws": "^0.9.4"
  },
  "devDependencies": {
    "babel-cli": "^6.26.0",
    "babel-eslint": "^7.2.3",
    "babel-jest": "20.0.3",
    "babel-preset-flow": "^6.23.0",
    "babel-preset-react-native": "2.1.0",
    "eslint": "3.19.0",
    "eslint-config-airbnb": "15.0.1",
    "eslint-loader": "1.8.0",
    "eslint-plugin-flowtype": "2.35.0",
    "eslint-plugin-import": "2.7.0",
    "eslint-plugin-jsx-a11y": "5.0.1",
    "eslint-plugin-react": "7.1.0",
    "flow-bin": "0.52.0",
    "i": "^0.3.5",
    "jest": "^20.0.4",
    "jest-expo": "^21.0.0",
    "jest-serializer-enzyme": "1.0.0",
    "npm": "^5.3.0",
    "or": "^0.2.0",
    "react-addons-test-utils": "15.5.1",
    "react-dom": "15.6.0",
    "react-native-debugger-open": "^0.3.12",
    "react-native-mock": "^0.3.1",
    "react-test-renderer": "16.0.0-beta.5"
  },
  "jest": {
    "testPathIgnorePatterns": [
      "/node_modules/"
    ],
    "preset": "jest-expo",
    "transformIgnorePatterns": [
      "node_modules/(?!react-native|react-navigation|@expo|expo|sentry-expo)/"
    ]
  }
}

Expected

Run on Android emulator

Occurred

Unable to apply changes on device: emulator-5554. Error is: Failed to build plugin nativescript-google-maps-sdk :
Error: Command ./gradlew failed with exit code 1 Error output:
error: invalid file path '/Users/yamildiazaguirre/Documents/node/LAaps/zafo/zafo_app/platforms/tempPlugin/nativescript_google_maps_sdk/build/intermediates/manifests/aapt/release/output.json'.

error: invalid file path '/Users/yamildiazaguirre/Documents/node/LAaps/zafo/zafo_app/platforms/tempPlugin/nativescript_google_maps_sdk/build/intermediates/manifests/aapt/release/AndroidManifest.xml'.

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':verifyReleaseResources'.

java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

  • Get more help at https://help.gradle.org

BUILD FAILED in 1s

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions