I've installed android studio and processing 3, and I can't use Android mode. I can't select anything in this blank window and can't close it. Any fixes? You to use Android Mode?
Distro: Arch
Processing - 3.5 linuxX64
I did face the same problem using Processing 3 in Ubuntu 16.04 .
The problem solved when I added the following lines in /home/<username>/.processing/preferences.txt
android.emulator.image.abi=x86
android.sdk.gvr=1.150.0
android.sdk.path=/home/<username>/sketchbook/android/sdk
android.sdk.play_services=11.0.4
android.sdk.support=26.0.2
android.sdk.target=26
android.sdk.wear=2.1.0
Then, I ran Processing 3 and I chose Android from the list.
This time, the window about the android sdk appeared with text.
PS. I had not created the android.sdk.path prior the installation.
I came across that issue and solve it. But if u do that you may be lost all sketches. Firstly, remove /home//.processing/ and /home//sketchbook. Than execute ./uninstall.sh which is your installation folder.(for me /opt/processing-3.5.3 ). than install 3.4 version from processing download page . Than extract it where you want and execute ./install.sh. Open processing IDE. Check version it should be 3.4. Than install android mode it will be ask for sdk and download manually. Than go 3.4 version installation folder execute ./uninstall.sh than install 3.5.5 version. It works for me.
Related
whenever I open android device monitor ,I see this (image attached) blank screen where nothing is working.
Actually i want to access the sqlite so I was using android device monitor, but i don't know what happened to this, it is started behaving abnormally.
please help!
I see from the screenshot this is regarding a windows machine but it may be the same issue as on the OS X, on OS X Android Device monitor does not seem to work on jdk1.8.0_162. Installing a previous version worked for me. If you install java jdk1.8.0_151 or anything earlier from the archive and delete your 16X version located at /Library/Java/JavaVirtualMachines or change your JAVA_HOME to the older version in your environment variable then the ADM works. To get the archived jdk download it from http://www.oracle.com/technetwork/java/javase/downloads/java-archive-javase8-2177648.html, however you have to create an oracle account to download past versions :(
I was searching for more similars questions on stack overflow to help as this problem frustrated me greatly, and now see that https://stackoverflow.com/a/47982836/5170253 . has also offered the same solution.
Please follow the following steps:
Note that you will have to downgrade to version 1.8.0_151,
downgrading to 1.8.0_152 will not help.
Download and install the older version -
https://filehippo.com/mac/download_java_development_kit_for_mac/78808/
Check if the older version is installed by running the command - ls
/Library/Java/JavaVirtualMachines/
Update the JAVA_HOME in ~/.bash_profile to point to the old JDK version.
Run the Android Monitor
I seem to be having issues installing RWeka in R, on my mac.
I've read through a number of websites but nothing seems to work. I have Java 8 installed on my mac (I'm running OS X Sierra and I'm running R version 3.3.2).
When I attempt to install the R package I get the error:
Warning message:
In install.packages("RWeka") :
installation of package ‘RWeka’ had non-zero exit status
In grey letters, several lines up it also says:
Need at least Java version 1.7/7.0.
I'm running the latest version of Java (1.8) but it doesn't seem to sync up with RWeka for some reason. I've tried shutting down R and re-starting it, but that doesn't seem to help either.
R also throws up a pop up informing me:
To use the "java" command-line tool you need to install a JDK.
Click "More Info..." to visit the Java Developer Kit download website.
If I click "Ok" it simply opens a mac website but there is nothing on there regarding a Java Developer Kit. I've used the search function on the website with no success. I've googled Java Developer Kit but can't seem to figure out what it is or how it is supposed to even work.
Any ideas on how to remedy this?
The problem was rJava and RWeka wont install in RStudio (Version 1.0.136). The following worked for me (macOS Sierra version 10.12.6) (found here):
Step-1: Download and install javaforosx.dmg from here
Step-2: Next, run the command from inside RStudio:
install.packages("rJava", type = 'source')
install.packages("RWeka")
I just installed Android Studio (after wiping everything away from previous installations of either android studio and android SDK), I created a new app (from the templates, didn't edit anything), and I tried to run it in an emulator. I went through the process of creating a AVD (which crashes from Android Studio, but works if I start the tool directly from outside), but no matter what, it fails to run.
I always get a "jspawnhelper quit unexpectedly." error.
My system:
OSX 10.7.5 (and don't ask me to upgrade, please)
Java 1.7.0_79 (I also tried with 1.8, it's worse)
Android Studio 2.1.1
Android
SDK for API 23 and 22 installed today.
I have no clue what jspawnhelper is, and honestly, I couldn't care less. I just want to install Android Studio and start writing some code.
Seems like I found the answer and, as usual, is not the answer I want to hear ...
Android Studio requires OSX 10.8.5.
unable to create AVD with android sdk on Mac OS
I'm not upgrading this macbook even if somebody points a gun at me ... time to go shopping, or install linux.
I tried to run SDK Manager , but the only thing I achieved is that command prompt window pops up and then disappears. I tried opening :
android-SDK-windows/tools/android
in cmd but it said : No suitable Java found.When I try to install Java , both online and offline versions, Program Compatibility Assistant tells me that it's already installed , but Java's uninstallation tool and version verification can't find anything . How can I get Java up and running ?
Try reinstalling windows, and then installing SDK manager one more time.
i´ve searched about an awnser for this problem, tried many things, but still it doesn't Work.
I'm using a win7 64-bit version.
I've set the ANDROID_SDK_HOME variable and... nothing.
With the path: C:\Users\Nuno\Favorites\.android\avd
The error is this:
Cannot launch AVD in emulator.
Output:
PANIC: HOME is defined but could not find PhoneTest.ini file in $HOME\.android\avd
(Note: avd is searched in the order of $ANDROID_AVD_HOME,$ANDROID_SDK_HOME\.android\avd and $HOME\.android\avd)
Can someone help me?
It's working now!
How did i solved?
I copied the AVM's i created from c:\user\favorites.android\avd and pasted them at c:\user.android\avd.
Tbh i don't know why this happened but when i installed Android studio it created the first directory to put the avd's, while the HOME variable points to the second directory.
After that i had a second problem, it said it couldn't create the temp file... I just had to execute Android studio with administrative privileges.
I hope it helps.
I was facing same issue when installed and configured android studio on ubuntu 14.04 (64 bit).
After installation android studio successfully, when I run my app, I faced below issue:
Cannot launch AVD in emulator. Output: PANIC: HOME is defined but
could not find Nexus_5_API_21.ini file in $HOME/.android/avd (Note:
avd is searched in the order of
$ANDROID_AVD_HOME,$ANDROID_SDK_HOME/.android/avd and
$HOME/.android/avd)
I discovered reason of issue and find solution of the same. Reason was that I had downloaded android_studio at home directory (path:/home/ubuntu/android_studio). When I started studio (by using command: $sudo sh /home/ubuntu/android_studio/bin/studio.sh), which is actually installed at path /root/, it is trying to access "root" user files at path /root/.android/avd
Ready to use solution is:
Use command with root user ie
#sh /home/ubuntu/android_studio/bin/studio.sh
in place of of
$sudo sh /home/ubuntu/android_studio/bin/studio.sh
Im glad you have solved the problem.
This is the ubuntu version of your problem.
This explains why you need to admin privileges.
Add environment variables ANDROID_AVD_HOME or ANDROID_SDK_HOME as your emulator really in(show in capture below). avd manager create emulator in maybe in another directory(default C:\Users[User Name].android\avd on Windows).
As message show in tips, avd will search xxxx/.android/avd. So you setting environment variables above can solve the problem.
enter image description here
When AS was updated in Parallels and HAXM was installed after disabling Hyper-V, for me, the new avds somehow found their way into the Mac's .android folder? I previously installed AS on the Mac but wanted to separate Xcode and AS, so I used Windows for AS and uninstalled it on the Mac. When I opened AS from the dock, it was as if it was a fresh install and I didn't import settings...
Solution was to grab all my old emulators (folders and .ini files) and pasted them into the Window's .android/avd folder.
Worked with me by setting the variable ANDROID_SDK_HOME and path D: \ ANDROID_SDK in S.O Windowns 7 Thanks
I might not be answering your question but I strongly encourage you to switch for a new Android Emulator. Works prietty good for me:
Genymotion Home Page