I tried using directly the sdk manager, using android studio, and using the ADT tools, whenever i try to run any of the above IDEs it gives me the following error:
Cannot run program "/home/igeeko/Downloads/android-studio/sdk/platform-
tools/adb": error=2, No such file or directory' while attempting to get adb version from '/home/igeeko/Downloads/android-studio/sdk/platform-tools/adb
how to get over it? i did not tamper with any android file, i just decompressed the compressed file and executed the executable file.
EDIT: i am using Xubuntu 13.04, I have not tried command line, i downloaded the ADT bundle from developer.android.com, extracted it and then tried to execute the executable file, i also got this error message,
i am able to create a virtual device, but not able to run it, it says that the "adb" file does not exist, it is there, and i have given read & write permissions to everyone on the file, so what might be the problem? and i am trying this since a long time
Related
I'm running into a problem while creating a flutter project using Android Studio
Cannot run program "C:\flutter\bin\flutter.bat" (in directory
"G:\test"): CreateProcess error=2, The system cannot find the file
specified
i tried to give full control permissions to the file C:\flutter\bin\flutter.bat
but still same problem
a screenshot for flutter doctor log
if you using Avast Antivirus program, its possible that it deleted the flutter.exe file, as it somehow thinks it's IDP.Generic virus ...
I'm attempting to install NativeScript with Angular2 with no luck. After installing TNS, I follow the next step which is Step 3. Install iOS and Android requirements in the tutorial and run the following command:
#powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://www.nativescript.org/setup/win'))"
However, I get the following error message every time I try it:
The error says: 'powershell' is not recognized as an internal or
external command, operable program or batch file.
My question is what can I do to fix the powershell command and get this installed? Do I have any other alternatives to install this?
Note: My PC is Windows 7 - 64 bit, and I have TNS installed correctly, I will greatly appreciate it if anyone know how to solve this problem. I just want to be able to install Nativescript and Angular2 and get started. Thank you!
UPDATE 1: I added the following to the environment variable: variable path cmd> set PATH=%PATH%;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\
And I was able to finish the 3rd step on an elevate command prompt. I installed all the android components in accordance to the step, but when I went back to run the tns now I get the following error: tns is not recognized as an internal or external command
What can I do to fix this issue? Do I need to somehow revert the path variable to get the TNS working?
Sounds like you don;t have your environment path set.
You can either try to set your environment path or manually install everything needed for development with NativeScript.
For the first option you can try to set your path with:
cmd> set PATH=%PATH%;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\
And then try to run the script for the autmated instalation.
If you prefer to install everything "by hand" you can take a look at this article. Installing everything manually can sound intimidating, but at least you will have an idea what exactly you are going to use in the mobile development. When I say installing "by hand" I mean that instead of running the Powershell, you can install all the required dependences one by one (Node.js, JDK, Android SDK, Android build tools and environment path setup)
Add the following to the environment variable: variable path cmd
> set PATH=%PATH%;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\
This should work.
I'm having an error that I can't find a solution for. I'm trying to get the Android emulator to work with a Cordova application in Netbeans 8.0. I get this error:
Creating android project...
Running command: C:\Users\SS&S\.cordova\lib\android\cordova\3.4.0\bin\create.bat --cli C:\xampp\htdocs\CordovaMapsSample\platforms\android com.coolappz.CordovaMapsSample CordovaMapsSample
'C:\Users\SS' is not recognized as an internal or external command,
operable program or batch file.
I have git, node.js, and cordova installed in their most recent versions, confirmed via the command prompt. I have checked my path in my environment variables for the Android Dev tools, and I've tried two versions of that path variable defined with and without escaping the ampersand with a caret (^). The issue shows up either way.
I still think the error is related to the ampersand, but I'm out of things that I know about to change.
Edit one: I've already modified the build path under environment variables. My problem persists. This is what I have:
%Path%;%ANDROID_PLATFORM_TOOLS%;%ANDROID_TOOLS%;C:\Users\SS^&S\AppData\Roaming\npm;C:\Users\SS^&S\AppData\Roaming\npm
Solved by creating a different user without ampersand in name.
I am trying to install the samplebrowserplugin given in the android source code. As given here (https://github.com/android/platform_development/tree/master/samples/BrowserPlugin), I am able to follow it to the second step (make SampleBrowserPlugin). I have the .apk file now but when I try to install it using adb, all I get is
Failure [INSTALL_FAILED_DEXOPT]
When I run logcat, among various messages, I see
DexOptZ: zip archive '/data/app/com.android.sampleplugin-1.apk' does not include classes.dex
I'm attempting to use Android's updater script language (Edify?) to install an APK over-the-air to an embedded device that I have control over. Here's a link that describes the language.
My first attempt was the following:
package_extract_file("added_files/data/app/test.apk", "/data/app/test.apk");
That resulted in test.apk being automatically installed in /data/data/com.acme.test, however the directory /data/data/com.acme.test/lib is empty, whereas it should contain test.so, a shared library contained in test.apk. (If I manually install using adb install test.apk, the library is extracted.)
I then tried extracting the APK into /data instead of /data/app so the OS wouldn't automatically install it into /data/data, and I could try installing using the script:
package_extract_file("added_files/data/app/test.apk", "/data/test.apk");
run_program("/system/bin/pm", "install", "/data/test.apk");
That resulted in the following error:
about to run program [/system/bin/pm] with 3 args
run_program: execv failed: Exec format error
run_program: child exited with status 1
I'm not sure why the above error happened.
Is there a way to install an APK and have its shared libraries extracted automatically? I could install the libraries manually, but I'm hoping to avoid that.
I'm not familiar with Edify, but by looking at the documentation, package_extract_file() simply extracts the APK as the archive file that it is. Why data ends up inside /data/data is strange; are you sure that isn't just left behind from a previous installation? I'd suggest fully uninstalling the app and trying again.
It seems to me that that particular function isn't suited for installing the app. You might want to try installing it through a command:
run_program("adb", "install", "-r", "added_files/data/app/test.apk");
Edify scripts run in a recovery mode and depending on your device not all partitions are available by default. Most likely your problem is that the partition you are trying to use is not mounted yet.