Hey guys,
I recently just installed the r20 release of the Android sdk and have run into a predicament, I am getting the SWT folder does not exist error that many of you have solved for others in the past, but I am getting something strange with that error, there is
Code:
'C:\Program' is not recognized as an internal or external command, operable program or batch file.
the rest is the typical ""Invalid path" and "The system cannot find the path specified,"
I've installed everything prior to that correctly (sdk installed in C:\ and find_java.exe can detect Java in the JRE bin folder), but the C:\Program part of the sequence seems to have me bewildered, do you think any of you might know a clue to where the culprit may be?
Here is a copypasta of the error sequence
Code:
C:\Android\android-sdk\tools>android
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
Invalid path
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
ERROR: SWT folder '' does not exist.
Please set ANDROID_SWT to point to the folder containing swt.jar for your platfo
rm.
Edit1: Forgot to put my current PATH variable
C:\Program Files (x86)\AMD APP\bin\x86_64;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files (x86)\Java\jdk1.7.0_05\bin;
Silly me, I knew the SDK wasn't to friendly to having spaces in the directory names, but I was preoccupied to just think about it...and me being stupid to not seeing the option to install the JDK in the root of C:\. anyway this problem solved...
Moral of the Story: read read read and install in the root of the drive.
Related
I know there has to be a way, I just can not find it.
What I want to do is with the terminal find a way to create a list of only the .apk files in a folder, would also be nice to know how to list other different file extensions.
My goal is to create a text file with a list of all the apks in my /system/app folder, and other folders as needed.
Thanks
Don't know if this works on Android, but in a standard Linux shell you can cd to the directory (which would be /system/app in your case) and then type ls > file.txt (file can be named anything).
my ADB will not work at all in command prompt i get this message 'adb' is not recognized as an internal or external command,
operable program or batch file.
thats what i get when i enter adb devices in the command prompt whether i have a device plugged in or not
I'm assuming that since you're asking about adb, you already have the Android SDK installed (or) you have a folder that you downloaded from somewhere with adb.exe, fastboot.exe and some other exe's in it. The reason you're getting that message is because your computer doesn't know where to look for adb.exe, unless you open command prompt in the folder itself. To be able to use the command universally in cmd, you need to add it to the Windows PATH system variable.
1. Control Panel->Search 'environment variables'->Click on 'Edit the system environment variables' with the administrator icon.
2. Click on 'Environment Variables' at the bottom, find Path (or) PATH under 'System variables', and click Edit.
3. Here, you need to provide the path to where the tools and platform-tools folders of the Android SDK are located, or to the location of the folder which contains adb.exe (if you have it that way instead of the SDK). There will already be some paths here for other stuff, each separated by a semicolon. Make sure that the previous path has a semicolon at the end before putting in your path. For example, the end of my path variable is - <previous paths>;F:\Programs\adt-bundle-windows-x86_64\sdk\tools;F:\Programs\adt-bundle-windows-x86_64\sdk\platform-tools
4. That's it. Now adb and fastboot will work in cmd anywhere from your computer (no need to be in the adb folder).
sashank said:
I'm assuming that since you're asking about adb, you already have the Android SDK installed (or) you have a folder that you downloaded from somewhere with adb.exe, fastboot.exe and some other exe's in it. The reason you're getting that message is because your computer doesn't know where to look for adb.exe, unless you open command prompt in the folder itself. To be able to use the command universally in cmd, you need to add it to the Windows PATH system variable.
1. Control Panel->Search 'environment variables'->Click on 'Edit the system environment variables' with the administrator icon.
2. Click on 'Environment Variables' at the bottom, find Path (or) PATH under 'System variables', and click Edit.
3. Here, you need to provide the path to where the tools and platform-tools folders of the Android SDK are located, or to the location of the folder which contains adb.exe (if you have it that way instead of the SDK). There will already be some paths here for other stuff, each separated by a semicolon. Make sure that the previous path has a semicolon at the end before putting in your path. For example, the end of my path variable is - <previous paths>;F:\Programs\adt-bundle-windows-x86_64\sdk\tools;F:\Programs\adt-bundle-windows-x86_64\sdk\platform-tools
4. That's it. Now adb and fastboot will work in cmd anywhere from your computer (no need to be in the adb folder).
Click to expand...
Click to collapse
ive done all that im just going to erase everything and run usbdeview and start over
you need to add the location of adb.exe to the path in your windows. with a default android sdk install, I added ";C:\Users\pat\AppData\Local\Android\android-sdk\platform-tools" to the end of my system path. then you need to reboot. (change the pat part to whatever your username is)
In Windows, you can give this command:
Code:
Dir c:\ /s>dir.txt
and it will create a directory listing of the entire file system and write the results to a file named dir.txt.
Is there a way to accomplish the same thing on an Android device?
Loyal AMLOGIC fanboy here messing around with a CS918 for only the third time . . . .
I am trying to run a shell to unpack an archive, there's a smali file that downloads the archive to /sdcard/Android/data, this part works fine.
The SH should then unpack to the same directory, this part fails.
My question is, does the directory path format require changing depending on your action (even though it's all going to the same place)?
I unpacked the rom's IMG file to see how other scripts are interacting with the filesystem and am seeing the following paths used by different files - but they all go to the same place:
/data/user/0/
/mnt/sdcard/Android/data/
/data/data/
Here is what the .sh file is trying to accomplish:
tar -xf /sdcard/Android/data/settings.tar -C /sdcard/Android/data/
rm /sdcard/Android/data/settings.tar
For the record, this works flawlessly on AMLOGIC using the path:
/storage/emulated/legacy/Android/data
Just incase anyone comes across this via searching:
The correct path is /mnt/sdcard/Android/data/ - but you have to run the batch as root
1 month ago I was using win 11 and when I entered this computer, the images downloaded and other disks were visible, then I used linux for 1 month, 1 month later I realized that linux was not for me and went back to win 11. I installed the latest win 11 iso file, and when I go to this computer folder, only the local disk folder appears, not the folders such as downloads images. how can i solve this problem?
Delete all partitions and create only one ntfs.
I suppose the method of installation you have done was wrong, CLEAN install the W11 using NTFS, when there's question asking to select partition when installation screen, delete all drive including RESERVED bla bla bla .. make sure there's only 1 drive while installing W11 ..
the rest of the standard partition and folders will be created automatically, do post the new screenshot after you have done those ..
This may cause because you have not set the file permission for windows 11 and you have deleted your linux os, in this scneario you can try the attrib command for this.
Attrib -r *.* — to change file permissions on all files in folder recursively.
Attrib
Displays, sets, or removes the read-only, archive, system, and hidden attributes assigned to files or directories. Used without parameters, attrib displays attributes of all files in the current directory.
Syntax
attrib [{+r|-r}] [{+a|-a}] [{+s|-s}] [{+h|-h}] [[Drive:][Path] FileName] [/s[/d]]
Top of page
Parameters
+r : Sets the read-only file attribute.
-r : Clears the read-only file attribute.
+a : Sets the archive file attribute.
-a : Clears the archive file attribute.
+s : Sets the system file attribute.
-s : Clears the system file attribute.
+h : Sets the hidden file attribute.
-h : Clears the hidden file attribute.
You can also refer to the following article that might help you Folder Access Denied Error on Windows 11