NativeScript / android

NativeScript for Android using v8
https://docs.nativescript.org/guide/android-marshalling
Apache License 2.0
524 stars 134 forks source link

paths.gradle points to nsconfig.json - spawn ./gradlew EACCES #1637

Closed funder7 closed 3 years ago

funder7 commented 4 years ago

Environment

Describe the bug For unknown reasons the error spawn ./gradlew EACCES started to show up when building the android version of a plugin demo project. The plugin is linked in the package.json through its path, as it was before. While looking in the files to find out why this is happening I've found many references to the old nsconfig.json file, I'm opening this issue in case the paths.gradle file needs to be updated in order to use the new nativescript.config.ts file.

To Reproduce the error mentioned seem totally random, it happens after many builds. After doing some cleanup it started to work again. Now cleaning plugin & app project doesn't seem to help anymore.

Additional Context OS: Linux

dammynex commented 4 years ago

Okay, I'm having this same error. Trying to update my plugins for ns 7.0

funder7 commented 4 years ago

after two hours finally I've moved on... @dammynex maybe it will work for you too:

It's the same command reported in the logs...in my case by running that finally the apk was built without that f. error

dammynex commented 4 years ago

@funder7 This did not work for me, I'm still getting same error

funder7 commented 4 years ago

It worked for me just to build the apk, but not when calling ns run android --emulator --no-hmr, so yes, it's just to address the issue a little, but it doesn't solve the problem :/

NathanaelA commented 3 years ago

Can you tell me which project is failing. I've been using NS 7.0.10 CLI, and the 7.0.0 runtime on several projects and haven't seen any failures to build with Gradle (I also use Linux).

dammynex commented 3 years ago

This has been fixed. Thanks @NathanaelA