Call-for-Code / Solution-Starter-Kit-Cooperation-2020

Materials for the Call for Code 2020 solution starter kit for community collaboration in the context of COVID-19.
Apache License 2.0
25 stars 105 forks source link

Could not load script error after I push the server-app to IBM Cloud CLoud Foundry #83

Open panlei080988 opened 4 years ago

panlei080988 commented 4 years ago

Env: Windows 10 + Android studio 4.0 + Pie 28 x86_64 image Server url: https://call4code-guideeldertest.mybluemix.net (get two ok of Assistant and Cloudant) I think this may be caused by the android emulator network issue since the server is on Internet.

I am a new andriod emulator and have no idea about how to setup the network of emultor and the readme does not contain the details of Android emulator network setup, is anyone can help?

image

vabarbosa commented 4 years ago

@panlei080988 are you able to successfully connect to the server if it is run locally? what was the output in the terminal window?

when you ran npm install from the starter-kit/mobile-app directory did you receive any errors?

also can you confirm the set up for your Android Studio as outlined in the Setting up development environment page of the React Native docs:

image

thank you

panlei080988 commented 4 years ago

@panlei080988 are you able to successfully connect to the server if it is run locally? what was the output in the terminal window? The app successfully connected to the server while the server is running locally image image image

when you ran npm install from the starter-kit/mobile-app directory did you receive any errors?

image

also can you confirm the set up for your Android Studio as outlined in the Setting up development environment page of the React Native docs:

image

thank you

Yes, I just followed this link and the section in your picture to setup the environment. Here are some screenshots I setted up in my laptop. BTW, I connect the home wifi and run cisco anyconnect and connect VPN to work from home due to COVID-19, so my laptop is not connect to IBM directly. And I use proxy to visit google since google cannot be accessed directly in China.

defected adb absolete image Andriod Platform image SDK tools image Windows environment variables image mobile-app folder .env file image Android sdk path image image

panlei080988 commented 4 years ago

When running locally, sometimes this error will appear. image

My .env file in mobile-app folder image