分类 问题记录 下的文章

今天重装完Android Studio,启动模拟器时出现了以下问题

Emulator: dsound: Could not initialize DirectSoundCapture 15:37 Emulator: dsound: Reason: No sound driver is available for use, or the given GUID is not a valid DirectSound device ID 15:37 Emulator: dsound: Attempt to initialize voice without DirectSoundCapture object 15:37 Emulator: dsound: Attempt to initialize voice without DirectSoundCapture object 15:37 Emulator: audio: Failed to create voice goldfish_audio_in‘ 15:37 Emulator: D:\buildSoft\android-studio\sdk\emulator\qemu\windows-x86_64\qemu-system-i386.exe: warning: opening audio input failed 15:37 Emulator: dsound: Attempt to initialize voice without DirectSoundCapture object 15:37 Emulator: dsound: Attempt to initialize voice without DirectSoundCapture object 15:37 Emulator: audio: Failed to create voice adc’

找了好久终于找到了解决方法:

https://jingyan.baidu.com/article/a65957f434890a24e67f9bfc.html

1、打开系统声音设置,打开声音控制面板

QQ截图20190322172307-768x435.png

2、将录制里的立体声混音打开

QQ图片20190322172353-238x300.png

3、重启模拟器,OK

安卓7.0以后不在默认信任用户根证书,需要在network_security_config.xml中信任用户根证书。

1、首先需要使用apktool反编译APK

2、更改res/xml中的network_security_config.xml

<network-security-config>
<base-config>
<trust-anchors>
<!– Trust preinstalled CAs –>
<certificates src=”system” />
<!– Additionally trust user added CAs –>
<certificates src=”user” />
</trust-anchors>
</base-config>
</network-security-config>

3、重新打包APK安装,抓包即可

参考:

https://www.kalvin.cn/article/14

Android 7: Intercepting App Traffic

http://www.freebuf.com/articles/terminal/158492.html

https://www.jianshu.com/p/eb766d2bb837

启动后若无法使用管理员打开应用,需要进入安全模式

1、尝试netsh winsock reset重置winsock服务

若出现NSHTTP.DLL错误,继续第二步

2、进入注册表,regedit,进入“HKEY_LOCAL_MACHINE-SYSTEM-CurrentControlSet-service”;找到该目录下的Winsock和Winsock2,右键删除,然后重启电脑

3、下载https://pan.baidu.com/s/1kUFemI7,解压

导入到注册表,重复第一步,重启

http://tieba.baidu.com/p/4962569472?red_tag=q0323092213

https://zhidao.baidu.com/question/328405156968044525.html

https://blog.csdn.net/yeyinglingfeng/article/details/68952639

UWP项目(SDK 16299)生成项目时出现下列问题

*1>C:Program Files (x86)Windows Kits10bin10.0.16299.0XamlCompilerMicrosoft.Windows.UI.Xaml.Common.targets(387,13): error MSB4064: “CompileXaml”任务不支持“PlatformXmlDir”参数。请确认该参数存在于此任务中,并且是可设置的公共实例属性。
1>C:Program Files (x86)Windows Kits10bin10.0.16299.0XamlCompilerMicrosoft.Windows.UI.Xaml.Common.targets(353,5): error MSB4063: 未能使用“CompileXaml”任务的输入参数初始化该任务。*

解决方法:
更改目标SDK版本

或者

编辑C:Program Files (x86)Windows Kits10bin10.0.16299.0XamlCompilerMicrosoft.Windows.UI.Xaml.Common.targets

删除或注释到下面三行

PlatformXmlDir=”$(PlatformXmlDir)”

<Output ItemName=”FileWrites” TaskParameter=”GeneratedXamlPagesFiles” />

<Output ItemName=”GeneratedXamlPagesFiles” TaskParameter=”GeneratedXamlPagesFiles” />

参考:

https://developercommunity.visualstudio.com/content/problem/145097/msb4064-the-platformxmldir.html

1、在扩展和更新中找到ReportDesigner安装

2、Nuget安装Controls

Install-Package Microsoft.ReportingServices.ReportViewerControl.WinForms

3、添加到工具箱

文件位置 {Solution Directory}packagesMicrosoft.ReportingServices.ReportViewerControl.Winforms.{version}libnet40

参考:

http://blog.csdn.net/dietime1943/article/details/78332584

https://docs.microsoft.com/en-us/sql/reporting-services/application-integration/integrating-reporting-services-using-reportviewer-controls-get-started##adding-control-to-visual-studio-toolbar