Skip to content
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

NativeScript 7 The new package uses a shared library that is not available #20

Open
bufke opened this issue Dec 28, 2020 · 2 comments
Open

Comments

@bufke
Copy link

bufke commented Dec 28, 2020

Problem

On a new NativeScript project, nativescript-wear-os produces the error Unable to apply changes on device: emulator-5554. Error is: The new package uses a shared library that is not available..

Reproduction steps

  • ns create
  • ns plugin add nativescript-wear-os
  • Update app.gradle minSdkVersion to 26 (avoids build error)

or clone https://gitlab.com/bufke/nativescript-wear-os-7-bug

Note that it's not necessary to actually use nativescript-wear-os. Just adding it causes builds to fail. It may be missing com.github.bradmartin:SmartWearOs but I couldn't find a work around.

@Erudition
Copy link

Same issue here, wish I knew about this before upgrading nativescript.
To add details: I can still deploy to wear os. But I'm trying to get my app to run on phones as well, and going back to phones is when I see this error.

@Erudition
Copy link

Workaround: dig into this package (in your node-modules folder - will get overridden unfortunately) and find include.gradle.

implementation 'com.github.bradmartin:SmartWearOs:0.2.0'

change that from implementation to compileOnly.

Now it builds again!

As a side effect this allowed me to depend on com.google.android.gms:play-services-wearable:17.1.0 in my app, when the previous configuration forced me to use 17.0.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants