无法打开Android模拟器记录
android studio Error while waiting for device: The emulator process for AVD was killed
网上找了好多解决方案,最后发现是磁盘空间不足...
移动avd到其他盘,搞定。
android studio Error while waiting for device: The emulator process for AVD was killed
网上找了好多解决方案,最后发现是磁盘空间不足...
移动avd到其他盘,搞定。
调试时出现以下问题:
Error connecting to the service protocol: failed to connect to
http://127.0.0.1:56341/vQjFLT5wAX0=/
出现此问题是因为开启了代理,解决方法:
环境中配置本地地址不通过代理
export NO_PROXY=localhost,127.0.0.1
今天重装完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、打开系统声音设置,打开声音控制面板
2、将录制里的立体声混音打开
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
启动后若无法使用管理员打开应用,需要进入安全模式
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