Nativescript - Error: more than one library with package name (Android) - nativescript

I'm getting the following error when I build under Android
Error: more than one library with package name 'com.google.android.gms.license'
How can I fix this?
I understand this has to do with some incompatibility with Android sdk library - but I didn't update anything explicitly - are libs being auto updated in the background?

If your tns-android version is 4+ then you can try with tns platform add android#3.4
It worked for me.

Related

NativeScript v7+ with Vue Firebase Integration Can't resolve tns-core-modules/application/application

My app is on NS 7.1.1 using #nativescript/firebase: 11.1.3 and nativescript-plugin-firebase: 10.6.3 while building I'm getting Module not found: Error: Can't resolve 'tns-core-modules/application/application' as the package is renamed and changed a bit but this issue is coming from node_modules folder. i'm also using #nativescript/core : 7.0.13.
please help if you have a solution to this
Plugin version 11+ works with NativeScript 7+.
Usage:
import {firebase} from '#nativescript/firebase';
Plugin version 10.0.0 works with NativeScript 6.1+. Using an older version? Stick to plugin version < 10.
Usage:
const firebase = require("nativescript-plugin-firebase");

Getting the following build error under iOS

I'm using latest NS, TNS and tns-ios and getting the following error
node_modules/tns-core-modules/ui/styling/gradient.d.ts(7,25): error TS6143: Module '../../css/parser' was resolved to '/Users/asrock/Documents/test/node_modules/tns-core-modules/css/parser.js', but '--allowJs' is not set.
I cleaned my project - and now the typescript compiler fails and exit.
Using TS 2.4.2.
NS 4.1, TNS-CORE 4.1 and TNS-IOS 4.1
This is the tns build iOS output
`
Support for Node.js ^6.0.0 is deprecated and will be removed in one of the next releases of NativeScript. Please, upgrade to the latest Node.js LTS version.
Support for macOS 10.12 is deprecated and will be removed in one of the next releases of NativeScript. Please, upgrade to the latest macOS version.
Executing before-prepare hook from /Users/asrock/Documents/test/hooks/before-prepare/nativescript-dev-sass.js
Found peer node-sass
Executing before-prepare hook from /Users/asrock/Documents/test/hooks/before-prepare/nativescript-dev-typescript.js
Found peer TypeScript 2.4.2
node_modules/tns-core-modules/ui/styling/gradient.d.ts(7,25): error TS6143: Module '../../css/parser' was resolved to '/Users/asrock/Documents/test/node_modules/tns-core-modules/css/parser.js', but '--allowJs' is not set.
TypeScript compiler failed with exit code 1`
I experienced that error and I managed to fixed it. If you're using nativescript-angular you need to upgrade your angular version to 6 and it's dependencies.
You can follow this link https://www.nativescript.org/blog/upgrading-to-nativescript-webpack-0.12.0. Nativescript-core or nativescript-angular.
Hope this helps! Happy coding.
Needed typescript#2.7.2.
Nice if NS printed a message somewhere.

Can’t compile modules anymore after sdk updates to 7.0.2

The latest updates of appcelerator to the newest SDK, cli, titanium studio, has now results in the failed built of every android modules I have created so far.
Below is the error -
Buildfile: /Users/Documents/sdk7module/android/build.xml
BUILD FAILED
/Users/Documents/sdk7module/android/build.xml:55: Cannot find /Users/Library/Application Support/Titanium/mobilesdk/osx/7.0.2.GA/module/android/build.xml imported from /Users/Documents/sdk7module/android/build.xml
Total time: 448 milliseconds
Any help is appreciated.
After installing ccache, I was able to compile the module without any error.

Trouble adding package System.Data.Common

I'm building a console project using Xamarin 6.1.1 on Mac OS X 10.11.6.
I've attached a screenshot of my current installed packages. I've tried adding both System.Data.Common 4.0.0 and 4.1.0 all end up with the same error.
ERROR:
"Could not install package 'System.Data.Common 4.1.0'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.5', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author."
Any idea on how to resolve this issue?
the nuget page for System.Data.Common lists the supported frameworks - for .NET you need to be sure your project targets 4.5.1

Xamarin build fails with an unknown error

I installed Xamarin and was attempting to compile and run an empty app, but the compilation fails with an unknown error:
How can I fix this error?
Install the Xamarin Android Player and select it from the devices list instead of Nexus 10 Android 3.0
Download link, Installation guide

Resources