【问题标题】:Android Studios: Android Device Manager shows no files for Nougat 7.0 in File ExplorerAndroid Studios:Android 设备管理器在文件资源管理器中未显示 Nougat 7.0 的文件
【发布时间】:2017-02-28 07:38:28
【问题描述】:

我正在学习如何将数据库 (SQLite) 集成到我的应用中。

我查看了这个tutorial,在 10m 处,OP 在 Android Studio 的 Android 设备管理器中进入 FileExplorer。

在文件资源管理器中看不到任何文件。 使用文件资源管理器是理想的结果。 昨晚,我在阅读了这些 stackoverflow 对话但没有理想的结果后,已经扎根了我的 Nexus 6p (7.0) 并重新安装了 Studio 2.2.2,这个问题已经很久了历史:

1)Android Device Monitor "data" folder is empty
How to Find my App's /data/data using Android Device Monitor's File Explorer

-root 手机 (6p) 在 FileExplorer 中不显示任何文件(已通过 Root Checker 验证)
- 模拟器在 FileExplorer 中不显示任何内容

2) How to access data/data folder in Android device?
How do I view the SQLite database on an Android device?
SQLite database cannot be accessed although device is rooted
Android Studio - Android Device Monitor's File explorer not working
Android: No files appearing in File Explorer

a) 亚行外壳
run-as com.your.packagename
安装已损坏 - 也许是我

b) 亚行外壳

chmod /data /data/data /data/data/com.application.package
错误模式 '/data'
什么都没有,在 FileExplorer 中不显示任何文件

c) 亚行外壳

chmod 777 /data /data/data /data/data/
什么都没有,在 FileExplorer 中不显示任何文件

d) 亚行外壳

chmod -R 777 data/
什么都没有,在 FileExplorer 中不显示任何文件

3) How can I see the contents of a sqlite db of my app in a real device?
什么都没有,在 FileExplorer 中不显示任何文件

4) http://forum.xda-developers.com/nexus-6p/help/android-device-manager-7-0-nougat-t3454419
也许不只是我,Nougat 7.0 出了点问题,但似乎有一个相同的问题源源不断。

任何帮助将不胜感激。我很想重新启动我的应用程序并尝试 IntelliJ 或 Eclipse,但我不确定这是否能解决我的问题。

【问题讨论】:

    标签: android sqlite shell


    【解决方案1】:

    Android Studio 2.4(目前在 Canary 中)添加了一个新工具窗口,可让您直接在 Android Studio 中与 API 24 设备和模拟器进行交互。更新到 2.4 canary 后,您可以在 View > Tool Windows > Device File Explorer 中找到工具窗口。

    【讨论】:

      【解决方案2】:

      显然你的问题的解决方案是迄今为止没有解决方案。

      这是许多安卓开发者提出的错误。

      1。 https://code.google.com/p/android/issues/detail?id=229628

      2。 https://code.google.com/p/android/issues/detail?id=225049

      3。 https://code.google.com/p/android/issues/detail?id=226984

      因此,如果有人遇到此问题,请使用针对 Android 23 或其先前版本的模拟器..

      【讨论】:

        【解决方案3】:

        我没有问题(验证的好迹象),但a problem with the emulators targeting Android 24 or 25

        16 年 10 月重新报告的问题: https://code.google.com/p/android/issues/detail?id=225049。相信谷歌会尽快解决这个问题。

        目前,解决方案是使用 API 23 运行您的模拟器,使用 Android 设备管理器访问包含数据的文件资源管理器应该没有问题。

        万岁!

        【讨论】:

        • API 26 中修复了吗?
        猜你喜欢
        • 2016-08-22
        • 2012-11-22
        • 2013-09-11
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2019-05-06
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多