Skip to content

CLI LiveSync command conflicts with Android Studio #1081

Closed
@vchimev

Description

@vchimev

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:

shell@hammerhead:/data/local/tmp $ ls -l                                       
drwxrwxrwx shell    shell             2015-10-19 02:20 org.nativescript.TNSApp

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:

Waiting for device.
Target device: lge-nexus_5-0925b76e031fa5f5
Uploading file
    local path: /Work/TNS_App/platforms/android/build/outputs/apk/TNSApp-debug.apk
    remote path: /data/local/tmp/org.nativescript.TNSApp
Adb Transfer Protocol Error.
Is a directory

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:

shell@hammerhead:/data/local/tmp $ ls -l                                       
-rw-rw-rw- shell    shell     9612872 2015-10-19 14:47 org.nativescript.TNSApp

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions