The front end is mostly under Windouws, and the backend is under Linux. Because of the hassle of switching back and forth, the React-native project was switched to Ubuntu for several days. Due to Linux innate permissions problem, I have a few minor problems in deploying the development environment under Ubuntu, and summarize here.
- 1.genymotion permissions issues;
When I finished installing genymotion on Ubuntu, I started genymotion as a normal user. But there was a mistake when downloading virtual machine. A total of two errors,
Http response Error:no such file or directory
And
Genymotion failed to write virtual device description file.
This is caused by permissions issues. You can start here as root, or you can open the folder where the genymotion is responsible for loading the downloaded files.
-
- Permissions issues for "./android" Files
This file defaults to the normal user does not have read and write permissions, here we just have to read the permission to open the line.
- 3.react-native The SDK was not found by the compilation program
This is not necessarily a problem for everyone, but if you find it, it's easy to solve. You simply create the Local.properties file in the Android folder under your project's folder (if you have an edit). and write it in there.
Sdk.dir = {Your SDK path}
React-native+genymotion+ubuntu Frequently Asked questions