小编kib*_*rCZ的帖子

将DexGuard集成到Android Studio中

你们中是否有人设法将DexGuard作为Android Studio的插件安装?我正在尝试使用使用DexGuard 6.1和Android Studio 1.1.0这样做Settings>Plugin>Install from disk,但是libs/dexguard.jareclipse/com.saikoa.(...).jar文件都导致

无法加载文件((the_selected_jar))的插件描述符

错误。

我也尝试手动执行此操作(将jar复制到Android Studio / plugins文件夹并编辑gradle文件),但两者都不走运。

我可以使用ProGuard,但是我想使用DexGuard来实现该encryptstrings功能。

android gradle android-studio dexguard

4
推荐指数
1
解决办法
6723
查看次数

没有控制台窗口的AppServiceBridge

我正在玩微软的UWP AppServiceBridgeSample(这里).

它运行良好,但我想摆脱BackgroundProcess应用程序的控制台窗口.这样做的原因是我BackgroundProcess启动了另一个Win32桌面应用程序并且仅作为中介使用,所以我不想用控制台窗口打扰用户.(是的,它可以最小化,但我宁愿不显示它).

我试图使用此处提到的API隐藏它,但没有运气,控制台窗口仍然可见.也没有将项目的输出类型从.work 切换Console ApplicationWindows Application.work.

我尝试过的另一件事是将其他BackgroundProcess项目创建为Windows应用程序.它运行正常,直到我调用AppServiceConnection.OpenAsync(),这导致BackgroundProcess应用程序退出强文本,因此无法连接到UWA.

static async void ThreadProc()
{
  try
  {
     AppServiceConnection connection = new AppServiceConnection();
     connection.AppServiceName = "CommunicationService";
     connection.PackageFamilyName = Windows.ApplicationModel.Package.Current.Id.FamilyName;
     connection.RequestReceived += Connection_RequestReceived;
     AppServiceConnectionStatus status = await connection.OpenAsync();
     //status check etc. ...
  }
  catch(Exception ex)
  {
     MessageBox.Show(ex.ToString());
  }
}
Run Code Online (Sandbox Code Playgroud)

似乎只能从控制台应用程序打开AppService连接.

所以这是我的两个问题:

  1. 是不是有可能隐藏后台进程的控制台窗口?
  2. 我可以将后台进程用作Windows应用程序,而AppServiceConnection不会在OpenAsync通话过程中失败吗?

c# uwp desktop-bridge

3
推荐指数
1
解决办法
435
查看次数

标签 统计

android ×1

android-studio ×1

c# ×1

desktop-bridge ×1

dexguard ×1

gradle ×1

uwp ×1