Skip to content

Instantly share code, notes, and snippets.

View EmilAlipiev's full-sized avatar
🎯
Focusing

Emil Alipiev EmilAlipiev

🎯
Focusing
  • Freelancer
  • Germany
View GitHub Profile
public static class ScreenSettings
{
public static void MakeScreenOn()
{
int ret = DevicePowerRequestLock(1, 0); // type : CPU:0, DisplayNormal:1, DisplayDim:2
//if (ret != 0)
//{
// Exception exp;
// switch (ret)
// {
This file has been truncated, but you can view the full file.
1>Project 'myWorkout.Droid' is not up to date. Input file 'C:\Git\myApp\myApp\myApp.Droid\myApp.Droid.csproj.user' is modified after output file ''.
Restoring NuGet packages...
To prevent NuGet from restoring packages during build, open the Visual Studio Options dialog, click on the NuGet Package Manager node and uncheck 'Allow NuGet to download missing packages during build.'
Running restore with 4 concurrent jobs.
Reading project file C:\Git\myApp\myApp\Fitness.Shared\Fitness.Shared.csproj.
Reading project file C:\Git\myApp\myApp\myApp.Droid\myApp.Droid.csproj.
The restore inputs for 'Fitness.Shared' have not changed. No further actions are required to complete the restore.
The restore inputs for 'myApp.Droid' have not changed. No further actions are required to complete the restore.
Committing restore...
Assets file has not changed. Skipping assets file writing. Path: C:\Git\myApp\myApp\Fitness.Shared\obj\project.assets.json
[D:RunShellCommand]: R58M324291W cat /data/system/packages.xml
[D:RunShellCommand]: R58M324291W cat /dbdata/system/packages.xml
[D:RunShellCommand]: R58M324291W getprop
[D:RunShellCommand]: R58M324291W "pm" "list" "packages" "-f"
[D:RunShellCommand]: R58M324291W am broadcast -a "mono.android.intent.action.PACKAGE_VERSIONS" -e "packages" "Mono.Android.DebugRuntime,Mono.Android.Platform.ApiLevel_28,com.companyname.wearcompanion" -n "Mono.Android.DebugRuntime/com.xamarin.mono.android.PackageVersions"
[D:RunShellCommand]: R58M324291W pm uninstall -k "com.companyname.wearcompanion"
[D:RunShellCommand]: R58M324291W pm uninstall -k "com.companyname.wearcompanion"
[D:RunShellCommand]: R58M324291W pm install -d "/data/local/tmp/com.companyname.wearcompanion-Signed.apk"
[D:RunShellCommand]: R58M324291W rm "/data/local/tmp/com.companyname.wearcompanion-Signed.apk"
[D:RunShellCommand]: R58M324291W "pm" "path" "com.companyname.wearcompanion"
1>------ Build started: Project: myWorkout.Droid, Configuration: Release Any CPU ------
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(888,2): warning XA0110: Disabling true as it is not supported by `aapt2`. If you wish to use true please set true to false.
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2106,5): warning MSB3277: Found conflicts between different versions of "SkiaSharp" that could not be resolved. These reference conflicts are listed in the build log when log verbosity is set to detailed.
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(1699,2): warning APT0000: warn: removing resource myworkout.myworkout:string/com_facebook_loginview_logged_in_using_facebook_f1gender without required default value.
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Xa
Building testapp.Android (Release)
Build started 7/28/2019 4:52:51 PM.
__________________________________________________
Project "/Users/batmaci/Projects/testapp/testapp.Android/testapp.Android.csproj" (PackageForAndroid target(s)):
Target _CleanIntermediateIfNuGetsChange:
Skipping target "_CleanIntermediateIfNuGetsChange" because all output files are up-to-date with respect to the input files.
Target _ResolveSdks:
Found Java SDK version 1.8.0.
Android: 9
Android Build: PPWS29.69-26-4
Manufacturer: motorola
Model: moto x4
Xamarin Exception Stack:
System.NotSupportedException: Unable to activate instance of type Java.Lang.Runnable from native handle 0xff83dfbc (key_handle 0x64bda85).
at Java.Interop.TypeManager.CreateInstance (System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer, System.Type targetType) <0xc8f3c9ac + 0x003b0> in <29635e121db34534a72ded2726f4d6e0>:0
at Java.Lang.Object.GetObject (System.IntPtr handle, Android.Runtime.JniHandleOwnership transfer, System.Type type) <0xc8f1dbe4 + 0x0036b> in <29635e121db34534a72ded2726f4d6e0>:0
4>C:\Users\user_\.nuget\packages\microsoft.net.native.compiler\2.1.8\tools\Microsoft.NetNative.targets(788,5): error : Error: NUTC303E:Internal Compiler Error: No matches found for a constrained call to method 'instance System.Void System.Runtime.CompilerServices.IAsyncStateMachine.MoveNext()' on type 'Splat.WriteableBitmapImageBitmap+<Save>d__9' from assembly 'Splat' while compiling method 'static System.Void System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start<Splat.WriteableBitmapImageBitmap+<Save>d__9>(Splat.WriteableBitmapImageBitmap+<Save>d__9&)'.
4>C:\Users\user_\.nuget\packages\microsoft.net.native.compiler\2.1.8\tools\Microsoft.NetNative.targets(788,5): error : Type 'System.Runtime.CompilerServices.IAsyncStateMachine' from assembly 'System.Runtime' was not included in compilation, but was referenced in method 'BitmapImageBitmap.<Save>d__8.SetStateMachine(IAsyncStateMachine)'. There may have been a missing assembly, or a dependency on a more recent Windows SDK release.
4>C:\Users\user_\.nuget\
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AndroidUseSharedRuntime>False</AndroidUseSharedRuntime>
<DebugType>portable</DebugType>
<AndroidLinkMode>Full</AndroidLinkMode>
<EmbedAssembliesIntoApk>true</EmbedAssembliesIntoApk>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AndroidUseSharedRuntime>False</AndroidUseSharedRuntime>
<DebugType>portable</DebugType>
<AndroidLinkMode>Full</AndroidLinkMode>
<EmbedAssembliesIntoApk>true</EmbedAssembliesIntoApk>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AndroidUseSharedRuntime>False</AndroidUseSharedRuntime>
<DebugType>portable</DebugType>
<AndroidLinkMode>Full</AndroidLinkMode>
<EmbedAssembliesIntoApk>true</EmbedAssembliesIntoApk>