0 Replies Latest reply on Oct 17, 2018 5:38 AM by Byron Blackwell

    VS 2017 Nuget LinkOS crashes

    Byron Blackwell

      I recently starting developing an app on the PC that works fine with Zebra SDK, but would like to create a client for it on android.  I'm using the latest Visual Studio 2017 Pro to develop.  When I create a project and immediately build it, it builds fine (no coding or anything at this point).  Once I add the Nuget LinkOS, it crashes the build.

       

      I'm using:

       

      LinkOS_Xamarin_SDK 1.2.0

       

      I've set the javaheapsize to 2G as well still the same error.

       

      Laptop has 16GB of RAM and Intel I7 8650U with 633GB of disk space free.

       

      Am I doing something wrong?  Do I need to make adjustments for the SDK.  I use other Nuget packages with no issues.

       

      Error:

       

      Severity Code Description Project File Line Suppression State

      Error  java.lang.OutOfMemoryError. Consider increasing the value of $(JavaMaximumHeapSize). Java ran out of memory while executing 'java.exe -Xmx1G -jar "C:\Program Files (x86)\Android\android-sdk\build-tools\27.0.3\\lib\dx.jar" --dex --no-strict --output obj\Debug\MonoAndroid81\android\bin C:\VisualStudioProjs\Projects\App1\App1\App1.Android\obj\Debug\MonoAndroid81\android\bin\classes.zip "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v8.1\mono.android.jar" obj\\Debug\MonoAndroid81\lp\1\jl\formsviewgroup.jar obj\\Debug\MonoAndroid81\lp\10\jl\bin\classes.jar obj\\Debug\MonoAndroid81\lp\11\jl\bin\classes.jar obj\\Debug\MonoAndroid81\lp\12\jl\bin\classes.jar obj\\Debug\MonoAndroid81\lp\13\jl\bin\classes.jar obj\\Debug\MonoAndroid81\lp\14\jl\bin\classes.jar obj\\Debug\MonoAndroid81\lp\15\jl\bin\classes.jar obj\\Debug\MonoAndroid81\lp\16\jl\bin\classes.jar obj\\Debug\MonoAndroid81\lp\17\jl\bin\classes.jar obj\\Debug\MonoAndroid81\lp\18\jl\bin\classes.jar obj\\Debug\MonoAndroid81\lp\19\jl\bin\classes.jar obj\\Debug\MonoAndroid81\lp\20\jl\bin\classes.jar obj\\Debug\MonoAndroid81\lp\21\jl\bin\classes.jar obj\\Debug\MonoAndroid81\lp\22\jl\bin\classes.jar obj\\Debug\MonoAndroid81\lp\23\jl\bin\classes.jar obj\\Debug\MonoAndroid81\lp\28\jl\ZSDK_ANDROID_API.jar obj\\Debug\MonoAndroid81\lp\28\jl\__reference__commons-io-2.2.jar obj\\Debug\MonoAndroid81\lp\28\jl\__reference__commons-lang3-3.4.jar obj\\Debug\MonoAndroid81\lp\28\jl\__reference__commons-net-3.1.jar obj\\Debug\MonoAndroid81\lp\28\jl\__reference__commons-validator-1.4.0.jar obj\\Debug\MonoAndroid81\lp\28\jl\__reference__core-1.53.0.0.jar obj\\Debug\MonoAndroid81\lp\28\jl\__reference__httpcore-4.3.1.jar obj\\Debug\MonoAndroid81\lp\28\jl\__reference__httpmime-4.3.2.jar obj\\Debug\MonoAndroid81\lp\28\jl\__reference__jackson-annotations-2.2.3.jar obj\\Debug\MonoAndroid81\lp\28\jl\__reference__jackson-core-2.2.3.jar obj\\Debug\MonoAndroid81\lp\28\jl\__reference__jackson-databind-2.2.3.jar obj\\Debug\MonoAndroid81\lp\28\jl\__reference__opencsv-2.2.jar obj\\Debug\MonoAndroid81\lp\28\jl\__reference__pkix-1.53.0.0.jar obj\\Debug\MonoAndroid81\lp\28\jl\__reference__prov-1.53.0.0.jar obj\\Debug\MonoAndroid81\lp\28\jl\__reference__snmp6_1z.jar obj\\Debug\MonoAndroid81\lp\5\jl\arch-core-common.jar obj\\Debug\MonoAndroid81\lp\6\jl\arch-lifecycle-common.jar obj\\Debug\MonoAndroid81\lp\7\jl\bin\classes.jar obj\\Debug\MonoAndroid81\lp\8\jl\bin\classes.jar' App1.Android