0

Trying to build and run an Ember app with Capacitor on virtual device in Android studio. Build and installation goes fine until the app is launched and stops when trying to process a spesific route. The problem only occurs when building from windows, no problem on Mac. The app is communicating with a jsonapi.

Error message in chrome device inspector: "Error while processing route [routename]"

I have tried with physical device connected getting the same message. Also tried with Genymotion plugin.

Capture of browser console: chrome console error

And this is what logcat is giving: logcat error

I also have some errors reported from the IDE (Android Studio) not related to running the Emulator but occurs when opening the IDE: Android Studio errors. In case this has something to do with it.

Solution in this case: Had to reinstall node js with another older version. Did an npm cache clean and built the app all over again. Also made sure to open the project with npx cap open android.

5
  • Hi! Welcome to ember+stackoverflow!!!! any chance you can capture the error and stack from the browser console? Commented Jun 16, 2022 at 15:52
  • Thanks @NullVoxPopuli! I added some captures in the question description. Commented Jun 16, 2022 at 18:04
  • can you copy the text to the post (including stack trace)? (just in case folks' networks have imgur blocked?) Commented Jun 16, 2022 at 19:24
  • 1
    I managed to figure it out. Thanks anyways. Commented Jun 17, 2022 at 9:14
  • 1
    any chance you can post an answer with what the solution was? Commented Jun 17, 2022 at 21:47

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.