-
-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CLI LiveSync command conflicts with Android Studio #1081
Comments
I've done some research how best to fix this. If we rename the on-device path, we have to extensively refactor all AppBuilder clients keeping backwards and forwards compatibility. Therefore, I propose to enhance the LiveSync process by letting android runtime delete the files at the end of livesync. So far these approaches were discussed:
At any rate, this bug is not critical and I postponed it for 1.6. |
One caveat is that while the livesync is running we are taking up the name from Android Studio. Livesync is a "lengthy" running command. I think that's not big of a deal.... |
The scenario when the application runs by Android Studio, creates a file with the name of the package in /data/local/tmp directory and then |
I need to delete the directory, as suggested, but I cannot access /data/local... does the device need to be rooted to do so? |
tns livesync android
command creates a folder with the name of the package (ex. org.nativescript.TNSApp) in /data/local/tmp directory on the device:After that if you try to run the same project on the same device by Android Studio, it tries to create a file with the same name and fails with:
As a result you are not able to run the project until you delete the folder in /data/local/tmp.
The opposite scenario:
when successfully run the application by Android Studio, it creates a file with the name of the package (ex. org.nativescript.TNSApp) in /data/local/tmp directory on the device:
After that if you try to execute
tns livesync android
command will not manage to sync the changes because it needs to create a folder with the name of the package in /data/local/tmp directory on the device.As a result the
livesync
command does not work anymore until you you delete the file in /data/local/tmp.The text was updated successfully, but these errors were encountered: