Android Studio Stuck on Loading Project - General Questions and Answers

I was working in Android Studio and accidentally locked my Android Folder containing the Sdk, I re gave myself the permissions and unlocked it but when I try to reopen my android project it stays stuck on loading project.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I have tried restarting my computer(linux) and running ./studio.sh but it is still not loading.
I am also seeing in the terminal:
2021-03-19 12:48:57,346 [ 56749] WARN - Container.ComponentManagerImpl - Do not use constructor injection (requestorClass=com.android.tools.idea.apk.issues.SetupIssueReporter)

first, glad to see you use programming on linux, i encourage you continue using it and learn it
that "WARN", is normal when starting studio from command line.
check in ~/HOME/AndroidStudioProjects directory, (if you allowed android studio to install location for projects in ~/HOME/AndroidStudioProjects, and in ~/HOME directory check if you have "Android" directory, there is located Sdk tools.
check permissions for directories, just check this website , cd (open directory, terminal command) to ~/HOME/AndroidStudioProjects;
Code:
~/HOME/AndroidStudioProjects
, and check permissions via
Code:
ls -l
, or
Code:
cd AndroidStudioProjects
to get deeper into, to list project directories you have, and check their permissions, they need to have write, and read permissions for owner at least
And replace ~/HOME, with your name you use in linux, if command don't work, so not to get confused there

indestructible master said:
first, glad to see you use programming on linux, i encourage you continue using it and learn it
that "WARN", is normal when starting studio from command line.
check in ~/HOME/AndroidStudioProjects directory, (if you allowed android studio to install location for projects in ~/HOME/AndroidStudioProjects, and in ~/HOME directory check if you have "Android" directory, there is located Sdk tools.
check permissions for directories, just check this website , cd (open directory, terminal command) to ~/HOME/AndroidStudioProjects;
Code:
~/HOME/AndroidStudioProjects
, and check permissions via
Code:
ls -l
, or
Code:
cd AndroidStudioProjects
to get deeper into, to list project directories you have, and check their permissions, they need to have write, and read permissions for owner at least
And replace ~/HOME, with your name you use in linux, if command don't work, so not to get confused there
Click to expand...
Click to collapse
Thanks so much for you help and encouragement for programming with linux!
I checked the permissions of the folder and am seeing:
Code:
drwxrwxr-x
Which I think means that I have permissions for this folder.

yjay18 said:
I was working in Android Studio and accidentally locked my Android Folder containing the Sdk, I re gave myself the permissions and unlocked it but when I try to reopen my android project it stays stuck on loading project.
View attachment 5254367
I have tried restarting my computer(linux) and running ./studio.sh but it is still not loading.
I am also seeing in the terminal:
2021-03-19 12:48:57,346 [ 56749] WARN - Container.ComponentManagerImpl - Do not use constructor injection (requestorClass=com.android.tools.idea.apk.issues.SetupIssueReporter)
Click to expand...
Click to collapse
I keep reading a lot of posts when I first get into trouble. This is how I once reached this website ( https://kodlogs.net/329/android-studio-stuck-on-installing-apk ) and got the desired solution. You can read this post as well as visit here. I think it will be very useful for you

Related

[TOOL]QtADB (AndroidManager for Linux, Windows and MacOS)

hello,
QtADB is window app based on adb.it lets you to copy,remove etc your files and apps from PC and Android Phone
This app is under developing so be tolerant for any bug...
visit QtADB website: http://qtadb.wordpress.com/
Features:
1. File manager
-copying files and dirs between phone and computer
-removing files and dirs
-creating new dir
-and other
2. App manager
-installing apps
-removing apps
-creating backup of apps with data
-restoring backups of apps with data
3. Shell
-opens android shell
4. Screenshot
-take screenshot of your device
-save screenshot to png file
5. Fastboot
-flash bootloader, radio and recovery
-boot recovery
6. Recovery
-nandroid backup/restore
-wipe data
-flash rom
-wipe battery stats
-fix uid mismatches
7. Reboot
-to bootloader
-to recovery
-normal reboot
8. Settings
-set font used by app
-set starting paths (or remember paths on exit)
-and other
9. Automatically detects phone (device, fastboot and recovery mode)
it requires installed AndroidSDK and busybox on phone (so and root)
linux and macOS version reguires installed Qt libraries(libqtgui4 and libqt4-network 4.6.2 or 4.6.3 version)(install it from synaptic or some similar app)
if you have connected phone but the file list is empty run with root permisions:
1)adb kill-server
2)adb start-server
or:
create file:
gksudo gedit /etc/udev/rules.d/51-android.rules
and insert this line:
SUBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666"
Ive got HTC Magic with Cyan6 and im testing everything on this. QtADB should work with every phone with busybox
if you have any suggestions/questions or you found any bug please let me know
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
More screenshots on official site
I am not responsible for damage done to your phone while using QtADB.
DOWNLOAD FROM OFFICIAL SITE
If You like QtADB please consider donation:
This is really nice
Awesome! i've been searching for something that works on Linux!
Nice work!
Worth having to install all the QTlibs. Very nice app!
I'm glad You like it
from download page (official site):
Linux x86 version (updated October 17th 2010. requires Qt 4.7 libraries: libqtgui4 and libqt4-network)
it needs only those 2 libraries

[Q] Access to root and system directory (without rooting and plugging the smartphone)

Hi everyone,
First of all, sorry for my English. I am currently working on an OVAL (oval.mitre.org) project which main goal is to determine if an Android device (smartphone, PDA..) is vulnerable or not , according to its system settings and installed applications. To make it quick and simple, the OVAL application that I am working on should be able of gather all system settings by reading all configuration files of the smartphone, and then analyze this information to determine if the device is secure. Since I have not yet a smartphone, I use Android SDK and some Android X86 images with VirtualBox.
Once one emulator is started, I run adb shell so I can read all files under / . Among them, some interesting configuration files are located under /system, for example. All of them are read-only, that's not a problem since I just have to collect information. I think that some settings can change from one Android version to another, but I will treat this problem later.
Code:
[email protected]:~$ adb shell
# ls
acct
cache
config
d
data
default.prop
dev
etc
init
init.goldfish.rc
init.rc
mnt
proc
root
sbin
sdcard
sys
system
ueventd.goldfish.rc
ueventd.rc
vendor
My question is the following: suppose we now have a real smartphone, that we can't root and/or plug (USB) to a laptop: is it still possible to access to / (or to /system) to gather system information? Is there another way? Maybe by entering in recovery mode (I can't test for the moment because, as I said, I have not smartphone and it seems to be impossible with emulator) ?
Thank you for your attention and for your help !
McFarah (I know, it looks like English-speaking name, but I'm french )
Anything you can do in an ADB shell you can do in Terminal Emulator on the device also. [Android Terminal Emulator - Google Play]
It is essentially the same as an ADB shell, but running on the device itself. All the same commands will work.
There are also plenty of file browsers which I think should be able to read those files without root (I can't test as my phone it rooted, but I believe most file browsers e.g. Solid Explorer, MiFile Explorer, ES File Explorer etc. should be able to do this).
EDIT: For example:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
(screenshot of terminal emu running same command as you quoted in your post)
EDIT: Also, it looks like you are running as root in the ADB shell output you posted above. The prompt appears to be a #, which indicates root. The normal prompt is $.
Hi SifJar
Thank you for your answer. I have already used Terminal Emulator, this is a good tool, that's right. I have not really experimented with browsers yet.
I have forgotten to say that, but ideally, the application should be able to perform her task without reposing on others external applications. Maybe I would rather write an Android application dedicated to the OVAL application myself, and add some automatisms: the Android application gathers all system and installed applications settings and feeds the OVAL application with that. Do you think this is a good solution?
Thanks
Sorry, I just assumed you wanted a solution for running the same commands you could over ADB on the device itself.
Yes, I believe you can easily call any of these commands from an app as well. I don't know exactly how one would do that, I'm not a developer but I'm sure it's fairly straight forward.
From a little googling, it seems you'd use something like this in your code:
Code:
Process process = Runtime.getRuntime().exec("su");
(replacing su with whatever command you wanted to run e.g. ls)
A few links that might be helpful:
http://saurabh-nigam.blogspot.co.uk/2010/10/running-android-native-code.html
http://stackoverflow.com/questions/...-a-system-command-from-an-android-application
https://code.google.com/p/market-enabler/wiki/ShellCommands
It must be said that I have not been very clear in my previous post!
Anyway, thanks a lot fot your helpful answers and the links, I will go into that in depth, and I will post again if I experiment some troubles. By the way, xda-developers forum is a very good one.
Have a nice day,
Mc Farah

[HOWTO] Setup Linux shell on Windows | Allows Windows to run Linux commands!

Want to do something like this on your Windows OS?
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Fear not, in this tutorial, you will learn on how to install a linux shell on your Windows OS!
To install a linux shell on Windows, there's a few solutions solutions that I usually prefer:
Msysgit
Cygwin
Powershell
In this tutorial, Msysgit is the program that will be installed as apart from giving you a linux shell, it gives you access to do git related things(clone a repo, fork repo) which is a very good plus
So, here's it, we'll install a linux shell on our Windows OS and have fun with it later on
Msysgit Installation:
1. Click here and download the latest version of msysgit(The latest version of the time of writing is 1.8.0 http://code.google.com/p/msysgit/downloads/detail?name=Git-1.8.0-preview20121022.exe&can=2&q=)
2. Open the installer and you will see something similar to this and click Next to continue
3. After that, you will be shown the gpl license as per shown below and click Next to continue
4. You will be prompted the location to install msysgit at. Click Next to continue
5. You will be prompted for additional settings, click Next to continue.
6. You will be prompted for the startup menu, click Next to continue.
7. You will be prompted for the path environment, select Use Git Bash only and click Next to continue.
8. You will be prompted for the line ending adjustment. Select Checkout as-is, commit Unix-style line endings and click Next to continue.
9. The installer will install the required files.
10. The installation has finished! Untick ReleaseNotes.rtf and click Finish to end the installation.
How to use:
1. Right click on an empty space at your desktop and click Git Bash.
2. Type your linux "hackish" commands!
The command that is used in the first screen shot is ls -la(directory listing with the file permissions of each file).
There's a lot of commands that you can play with, like echo, cat, uname, which, grep, sed, and many many more!
NOTE #1: For the best compatibility, cygwin would be preferred as it has a very complete set of linux commands built-in but Msysgit is less hassle to setup and it allows you to mingle around with Git once the setup is done which is a very good thing
NOTE #2: Msysgit is not preferred as a shell to create anything advanced like roms or kernels as the features that are available at mysysgit is rather limited(but it is enough for most users like us ).
There will be more tutorials which are related to Git and Linux will be made in the future, so read up fast and stay tuned for more contents! :fingers-crossed:

[TOOL][ADB]][Windows] A 100% Safe Non-systemless Root Tool - No Soft-bricked Adroid Guaranteed

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Grant Root Privileges to Regular Users Using Devices With Android 6 and up by Simply Upgrading Android's Multi-command Applet Toybox.
Preface:
THIS TOOL MAKES USE OF ADB COMMANDS, SO IF YOU DO NOT HAVE USB DEBUGGING TURNED ON AND ADB IS NOT INSTALLED ON YOUR WINDOWS COMPUTER, THEN IT WILL NOT BE OF ANY USE.
What does it do?
THIS TOOL MODIFIES ANDROID'S MULTI-COMMAND APPLET TOYBOX BY REPLACING IT BY ITS FULL VERSION - MEANS BY ITS VERSION THAT HAS SU COMMAND INCORPORATED.
Screenshot:
Download:
Usage:
Unpack the downloaded ZIP to any location on your Windows computer, run the script named Toybox-Updater.bat located therein.
Disclaimer:
This program is offered AS IS.
I do not warrant the functions in the program will meet your requirements or that the operation of the program will be uninterrupted or error-free.
In no event I am liable to you for any damages, including any lost data or other incidental or consequential damage.
Please don’t hesitate to report here any issues you may have with this tool! Thanks & enjoy!
In Linux, what Android is based on, the su (read: switch user) command is used to run a command as a different user, means the su command is used to run an OS function as a different user. It is the easiest way to switch or change to the administrative account in the current logged in session.
So using su to temporarily act as a root user - a root account is a master administrator account with full access and permissions in the system - allows you to bypass any default user-restrictions and perform different tasks with full permissions.
Because most Android versions by defaut use limited user accounts for normal use - making the system more secure - what restricts the user from running specific OS commands, the tool provided herewith adds su command to Android, what allows the currently logged in user to temporarily act as a root user - take note that a root account is a master administrator account with full access and permissions in the system.
su Command Syntax
To use the su command, enter it into a Windows command-line as follows:
Code:
adb shell "toybox su -c '[options] [username [arguments]]'"
Take note that if [username] is omitted su defaults to the superuser (in Linux term: root).
Hi, I came across this from another post where the user was trying to get su in his a022f. I have the same device and would like to achieve the same result. Unfortunately, I can't seem to find the zip file (there's no link to dl), or is it still being worked on, hence the absence of a link?

ADB File Explorer (python: application, cross-platform)

Python ADB File Explorer​Simple File Explorer for adb devices. Uses python library adb-shell or command-line tool adb.​Features:
List of adb devices
Connect via IP (TCP)
Listing / Pulling / Pushing files
Renaming and Deleting files
GitHub Repository​Latest build for win-x64:​ADB File Explorer v1.2.0
Download
Here some screenshots:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Just tried today, worked great! Windows 10 transfer to Pixel 6 Pro - 150gb in 15 minutes, much faster than MTP!
No errors or issues in Window 10, the window did read as non-responsive during the transfer but I assumed it was doing its thing and left it alone.
Only suggestion would be some sort of progress indicator, maybe that would stop the program from being "unresponsive"?
Thanks for your work, very easy to use!
kykyzachariah said:
Just tried today, worked great! Windows 10 transfer to Pixel 6 Pro - 150gb in 15 minutes, much faster than MTP!
No errors or issues in Window 10, the window did read as non-responsive during the transfer but I assumed it was doing its thing and left it alone.
Only suggestion would be some sort of progress indicator, maybe that would stop the program from being "unresponsive"?
Thanks for your work, very easy to use!View attachment 5459243
Click to expand...
Click to collapse
Thank you for your reply!
Ok, I will try to fix it.
!UPDATED!​to version v1.0
GitHub Repository
how about adb over wlan?
Latest build for win-x64:​ADB File Explorer v1.2.0
Download
Hi!
Is root adb server planned to be implemented?
I was just looking for a quick way to copy a folder from adb TWRP but when I tried to use this app there is the phone icon with a red cross (see picture) and nothing happens by clicking.
Through CLI instead I was able to copy the desired folder.
antoniu200 said:
Hi!
Is root adb server planned to be implemented?
Click to expand...
Click to collapse
root needed
Very cool stuff! I submitted a PR for supporting multiple file selection and download/delete on your repo. Please check it
Werve said:
I was just looking for a quick way to copy a folder from adb TWRP but when I tried to use this app there is the phone icon with a red cross (see picture) and nothing happens by clicking.
Through CLI instead I was able to copy the desired folder.
View attachment 5623663
Click to expand...
Click to collapse
I also found the same error for Samsung Galaxy M20 and unable to access files
@Azata
I hope this message finds you. First of all, thank you for developing this program! It has been immensely helpful for me in copying files to and from my device. I find that transfers via ADB are much faster and more reliable than using MTP protocol.
One thing I would like to suggest, I think it would be much better if the file picker interface could remember location of the last folder, as it always defaults to the application folder root where ADBFileExplorer.exe is located.
Also, it would be helpful if we could select multiple folders to copy at the same time. Currently, the file picker interface only lets you choose one folder at a time, and holding Ctrl whilst left-clicking does not select multiple folders.
Would it be possible to implement root? It does not trigger the root-prompt and simply says "permission denied"..
Could someone please post a step by step tutorial on how to use this?
I'm trying to run on a mac with m1 but having issues with PyQt5 installation. Does anyone have a workaround for this?
On Windows 7 X64
Tried installing/re-installing Python, but it's still not working.

Categories

Resources