Open dpdragnev opened 4 years ago
Hi @dpdragnev! Hard to tell to be honest without the project itself, but first thing I would try is to see if you can build the demo project (demo-ng). If that works then it is likely something with your project.
If you can provide a repo to your project I wouldnt mind to have a look. Also I am wondering why the output above references nativescript_contacts_lite
with underscores instead of dashes, or is that what you named your project?
@abhayastudios This is a good question. I copied the error message directly from the console window. My project is called something completely different.
I will try your suggestion to build the demo project and will report back a little later today.
This is so weird. I cannot figure out where the nativescript_contacts_lite is coming from. This is the whole error:
* What went wrong:
A problem occurred evaluating root project 'nativescript_contacts_lite'.
> Failed to apply plugin [class 'org.gradle.api.plugins.BasePlugin']
> Could not create service of type OutputFilesRepository using ExecutionGradleServices.createOutputFilesRepository().
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 1m 5s
Failed to build plugin nativescript-contacts-lite :
Error: Command ./gradlew failed with exit code 1
@abhayastudios So I cloned the repo and tried to run the anglular demo and I got the exact same error. See the attached screenshot.
If I run tns doctor I get all green checkmarks, so I don't think it is something in my system.
I would appreciate it if you could take a look and suggest a fix.
Thanks.
Hmm weird, I tried to build the demo project just now on my Mac still using NS 6.5 and it works just fine.
Can you send me the output of your $ tns info
? Also, what command are you using to build?
@abhayastudios Here is the tns info:
✔ Getting NativeScript components versions information...
⚠ Update available for component nativescript. Your current version is 6.5.0 and the latest available version is 7.0.11.
⚠ Update available for component tns-core-modules. Your current version is 6.4.2 and the latest available version is 6.5.21.
✔ Component tns-android has 6.5.3 version and is up to date.
✔ Component tns-ios has 6.5.3 version and is up to date.
I am using tns build android to build the project
Let me try updating the tns-core-modules. Maybe this is the issue
After updating the tns-core-modules. I get this error (same error, but gives a little more info)
* Where:
Build file '/Volumes/T7/Documents/Projects/nativescript-contacts-lite/demo-angular/platforms/tempPlugin/nativescript_contacts_lite/build.gradle' line: 28
* What went wrong:
A problem occurred evaluating root project 'nativescript_contacts_lite'.
> Failed to apply plugin [class 'org.gradle.api.plugins.BasePlugin']
> Could not create service of type OutputFilesRepository using ExecutionGradleServices.createOutputFilesRepository().
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 1m 1s
Failed to build plugin nativescript-contacts-lite :
Error: Command ./gradlew failed with exit code 1
Daniels-MacBook-Pro:demo-angular daniel$
It looks like it does not like line 28 in build.gradle, which is:
apply plugin: 'com.android.library'
I don't know if this helps
Still builds fine for me both with nativescript 6.5 and 7.0. Looks unrelated to ./platforms/tempPlugin/nativescript_contacts_lite
since I see that on my side as well and it is working fine.
After Googling a little bit it seems it might be related to a bug in Gradle, see this Flutter issue and this Gradle issue, so maybe this might work?
If not, can you run with the --stacktrace or --debug option so maybe it will output some more useful info?
Hello,
I am trying to build my app on a Mac for Android and I am getting the following error:
Here is my package.json:
Any idea what could be causing this?
Thank you