I am using Android Studio 3.0 and I want to access a sqlite db, so I want to download the db inside data/data/project
, but when I connect an android phone and open project folder then this happen, run-as: Package 'my project' is unknown
.
Device's package directory on real device:
But when I use the emulator to do this, everything is fine.
Does anyone know why is it?
Device's package directory on emulator:
Thanks a lot!
When you start a new project, Android Studio creates the necessary structure for all your files and makes them visible in the Project window on the left side of the IDE (click View > Tool Windows > Project ). This page provides an overview of the key components inside your project.
The Device File Explorer allows you to view, copy, and delete files on an Android device. This is useful when examining files that are created by your app or if you want to transfer files to and from a device.
When you create a new project, the default module name is "app". In the Create New Module window, Android Studio offers the following types of app modules: Each provides essential files and some code templates that are appropriate for the corresponding app or device type.
Right-click on a file or directory to create a new file or directory, save the selected file or directory to your machine, upload, delete, or synchronize. Double-click a file to open it in Android Studio.
For security reason, it's not allowed.
You can do it only on emulator or rooted device.
But you can add needed files in assets, so these are included in APK.
build.gradle:
android {
sourceSets.main {
assets.srcDir '/absolute/path/to/your/assets/folder'
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With