google-analytics-plugin icon indicating copy to clipboard operation
google-analytics-plugin copied to clipboard

Error Installation UWP.SDKforGoogleAnalytics.Native

Open Marcodebo opened this issue 7 years ago • 7 comments

Hi, I writing an app for Windows 10 and i would like to add this plugin, but when i tried to add a UWP.SDKforGoogleAnalytics.Native from nuget Package Manager i receive the error. Error: The 'UWP.SDKforGoogleAnalytics.Native 1.5.1' package could not be installed. You are trying to install on a project that is destined to 'MDD, Version = v8.1', but the package does not contain frame references or framework files. For more information, contact the author of the package.

Do you have a solution?

Marcodebo avatar Jul 21 '17 09:07 Marcodebo

that's maybe because there is not a release yet (v1.9.0); you maybe have the GAP v1.8.3.

You can install the using the github url to get the last code.

victorsosa avatar Jul 21 '17 10:07 victorsosa

Hi victorsosa, i reinstalled plugin from github url, but i have the same error.

Marcodebo avatar Jul 21 '17 10:07 Marcodebo

@spacepope Can you check this issue please?

victorsosa avatar Jul 21 '17 10:07 victorsosa

sorry, i used Visual Studio 2015!

Marcodebo avatar Jul 21 '17 10:07 Marcodebo

Why did you close the issue? i use Visual Studio 2015, but the plugin is not working.

Marcodebo avatar Jul 21 '17 11:07 Marcodebo

From what I can see in your error message, you are trying install the package to a Windows 8.1 project, not windows 10 UWP..

You can force Cordova to create the windows 10 build by executing: cordova build windows --archs=x86 --appx=uap

If you're using Ionic, you need an extra doubledash: ionic cordova build windows -- --archs=x86 --appx=uap

Then open the Solution in Visual Studio, change the Target to x86 and install the nuget package only into the windows 10 UWP project. You can then build the project and start it from within visual Studio. Note that you have to install the windows UWP build tools corresponding to your machine/target.

Note also that errors installing the windows sdk have nothing to do with this Plugin. If these hints are not helping you to solve your problem, you should ask on the github of the windows sdk package..

spacepope avatar Jul 21 '17 11:07 spacepope

@Marcodebo did you get it working?

spacepope avatar Jul 27 '17 06:07 spacepope