问题
On running the ripple emulator with nexus s & galaxy . I am getting a dialog box saying
Google chrome can't read and write to its data directory
c:\ users\amit
and when i click ok on that .suddenly chrome opens up saying : cannot view webpage . one more thing where can i set the System path variable to
%JAVA_HOME%\bin;%ADT_HOME%\tools;%ADT_HOME%\platform-tools;%ANT_HOME%\bin;
I mean to say what is this(System path variable) i don't understand .
回答1:
This worked for me on Windows 7.
Go to the file given in the error message:
c\users\[username]\application data\local\google\chrome
- right click the chrome file
- share with-specific people
- use drop down arrow in top box and choose your username ie give yourself permission to share the file.
- add
- confirm.
Message says its been done,
- close.
Chrome then opens without having to open it as administrator after every boot-up.
回答2:
It seems your Chrome user data directory might be corrupted, try following and see whether it helps:
- Take the back-up of bookmarks (if you want to back-up the data)
- Delete C:\Users\[user name]\AppData\Local\Google\Chrome folder
- Uninstall Chrome
- Reinstall Chrome
回答3:
For the time being, you can create a android emulator. You don't need chrome for that.
回答4:
It will work normally when you log in as administrator. If not you can simply change the "chmod" of the directory to 777. it will work.
回答5:
if you are in windows:
- go to
C:\Program Files (x86)\Google
- right-click on "chrome" folder
- go to "security" tab
- click on "Edit..." button -> "Add..."
- type
Everyone
-> "OK" -> "OK" - clicke on "Advanced"
- in front of 'owner' click on "Change"
- type
Everyone
-> "OK" -> "OK" -> "OK"
来源:https://stackoverflow.com/questions/25533088/google-chrome-cant-read-and-write-to-its-data-directory-mutli-device-hybrid-app