欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

解決android studio中使用monitor工具無法打開data文件夾問題

 更新時(shí)間:2020年04月02日 09:47:52   作者:嘻嘻哈哈沒有目標(biāo)  
這篇文章主要介紹了解決android studio中使用monitor工具無法打開data文件夾問題,本文給大家介紹的非常詳細(xì),對大家的學(xué)習(xí)或工作具有一定的參考借鑒價(jià)值,需要的朋友可以參考下

使用monitor工具無法打開data文件夾問題

關(guān)于/system/bin/sh: su: not found的解決辦法

D:\Sdk\platform-tools>adb shell
generic_x86:/ $ su
/system/bin/sh: su: not found

原因是

Android Studio帶(Google Play)的模擬器無法獲得root權(quán)限安裝
該換成為帶(Google APIs)的模擬器即可,如下:

在這里插入圖片描述

無法打開data文件夾的原因是權(quán)限不夠,需要設(shè)置權(quán)限
可以直接root,也可以一層一層的給權(quán)限

C:\Users\123>adb root
restarting adbd as root

這里我們把sdk文件夾中的platform-tools文件夾設(shè)為了環(huán)境變量,因?yàn)閍db.exe文件就在這個(gè)文件夾中。
一層一層設(shè)置權(quán)限如下:

C:\Users\123>adb shell
generic_x86_64:/ $ su
generic_x86_64:/ # chmod 777 /data
generic_x86_64:/ #
generic_x86_64:/ # exit
generic_x86_64:/ $ su
generic_x86_64:/ # chmod 777 /data/data
generic_x86_64:/ # exit
generic_x86_64:/ $ exit

命令解析

adb shell :打開 adb shell 程序。
su :獲取 root 權(quán)限。
chmod 權(quán)限 文件夾:為文件夾設(shè)置權(quán)限。
可以參考下面這篇博客:http://www.dbjr.com.cn/article/183998.htm
如果顯示沒有su: not found回到文章可以開頭解決

總結(jié)

到此這篇關(guān)于解決android studio中使用monitor工具無法打開data文件夾問題的文章就介紹到這了,更多相關(guān)android studio使用monitor工具無法打開data文件夾內(nèi)容請搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!

相關(guān)文章

最新評論