-
-
Notifications
You must be signed in to change notification settings - Fork 197
EACCES (Permission denied) when livesync Angular projects on Samsung devices #2485
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
Comments
Also experiencing this error after updating to 2.5 |
Had the same problem. Removing and adding again the android platform fixed the error, but now the app crashes for the tiniest UI changes without any error. I have to restart the app every time to get it working again. |
I had already tried removing the platform and re-adding it, but the problem still persisting. |
Same here ! Problem also occured without using Angular. |
+1 |
@alpinparker @S4M37 @rhanbIT @RaphaelJenni, can you provide steps to reproduce. What devices are you using? |
Can't reproduce it. Happens from time to time and then I have to restart the app. (tns run android) |
Happened again:
The folder |
I'm testing on Samsung Galaxy S7, android 6.0.1 |
same issue , testing on genymotion Google Nexus 7 API 22 emulator . |
same here, using Samsung Note 7 device.
|
Hey guys, The other one:
and send us the output of all these commands. This will help us to detect the permissions of the files and to understand what migth cause this issue. Thanks in advance for your help! |
Hi there ,
am already signed up on Github and I tried to run those commands on the
Github Command Line Interface ,but not able to know how to install the
nativescript cli.
Regards,
Palak Grover
…On Sat, Feb 18, 2017 at 2:18 PM, Angel Tsvetkov ***@***.***> wrote:
Hi Guys,
In regards of the second error I think I figured out why this happens. In
my AndroidManifest.xml file in my NativeScript project the
android:minSdkVersion="17". There is a user permission for write external
storage:
<uses-permission android:name="android.permission.WRITE_EXTERNAL_
STORAGE"/>
According to Android documentation WRITE_EXTERNAL_STORAGE starting in API
level 19 is not required to read/write files in your application-specific
directories (documentation
<https://developer.android.com/reference/android/Manifest.permission.html#WRITE_EXTERNAL_STORAGE>).
My test device is Samsung Galaxy S5 with Android 6.0.1 (API 23). I think
that the issue comes when you request user permission
WRITE_EXTERNAL_STORAGE on Android API > 18.
The solution I found is to set android:maxSdkVersion="18" attribute to
WRITE_EXTERNAL_STORAGE user-permission (documentation
<https://developer.android.com/guide/topics/manifest/uses-permission-element.html>)
so it looks like:
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"
android:maxSdkVersion="18"/>
Don't forget to remove platform (tns platform remove android) and then
re-run your app.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#2485 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AYiZ-9Rjcl99s8GWkfqY5xYzMIOcDilNks5rdrBqgaJpZM4L2anI>
.
|
Hey everyone,
I'm looking forward to hearing from you. |
Thx, when updating to nativescript 2.5.1 the sync file issue is resolved for me. And thx for @Palak5034 too because his solution resolves the EACCES issues. |
Hey @S4M37 , can you give some information how did you resolve the EACCESS issue, so other users reading this thread will be able to find the solution as well. |
I resolved it by editing the |
Fix the issue for me on Linux 😄 |
Windows, CLI 2.5.2
Afterwards can't get past this one:
|
I can report the same issue. I am running into it now:
I can't seem to get around it. I am running and building on Windows 10. |
Hey all, would you try our 3.0 RC (nativescript@rc) release and check if you still experience these problems and if so write back with specific steps to reproduce. |
I was getting this error so I installed the 3.0 RC on Windows 10. I then created a new project using the
|
I can confirm what @ferryfax says. |
@ferryfax please give it a try with latest cli: |
@Plamen5kov Here is what happens with @next
It looks livesync works (at least in basic scenarios), but we still log a log of errors. Tested with: |
@dtopuzov can you give me the steps to reproduce and the API level and model of the device you tested on. |
@Plamen5kov Galaxy S6 Edge, Android 6.0 Steps:
|
The new LiveSync with sockets, that will be used in CLI 4.2.0 will resolve this issue. |
From @S4M37 on February 3, 2017 14:27
I'm using NativeScript 2.5.0 with Angular2, using android platform with building tool 25.0.2, I'm testing on a device, and
tns doctor
no issues are found. So my problem is when running 'tns run android' the app is launched but no changes are applied, here is the logCopied from original issue: NativeScript/NativeScript#3569
The text was updated successfully, but these errors were encountered: