Cannot locate connected device in Processing - android

I'm having trouble getting Processing 3.3.6 (x64) for Windows 10 to recognize my LG V20 android device.
At first, I was getting a NoClassDefFoundError when I tried to run a sketch, and the Android SDK updater had 2 suggested updates that I couldn't install due to more errors. My phone was not listed in Processing. The device was I've enabled USB debugging, and the connection works; I can transfer files fine.
After reading across the internet with little advice or success, I tried uninstalling all Android-related files on my computer, as well as any Processing-related files. I uninstalled Java, JRE and JDK. I then reinstalled them all:
Java 8u161 JDK and JRE
Processing 3.3.6
Android SDK (auto-installed by Processing)
It all installed without complaint, and everything seemed fine. However, Processing still can't find or recognize my device. I've also tried these exact steps on my laptop which has a mostly clean install of Windows 10 (apart from chrome and some bloatware) with the same results.
I also tried running something via Processing's emulator; I may have done this wrong, but this comes up with a "Lost connection with emulator while launching" error.
From this, it feels like it HAS to be an issue with the phone, since it's on multiple PCs. But it also HAS to be an issue with the PC, since it occurs on both a phone and an emulator. Frankly, I'm dumbfounded as to what the problem is.
I'm not really sure what else I can do or try; I haven't found my problem anywhere else, and tried the solutions to all similar problems with no success. Does anybody have any ideas?
EDIT: I fixed the problem. I tracked down the location of my adb.exe, and ran "adb devices" in cmd at that location. It listed one
device (mine), and said it was unauthorized. A prompt appeared on my
phone, and upon confirming it, the device was authorized.

first off all check is your device connected to sdk by running this command
sdk/platform-tools/adb devices
if your device name not found make sure that you have USB debug enabled
goto settings/developer settings/ allow USB debug mode
if you don't see this option search how to enable developer settings for your phone mine was like
goto settings/about/software info
and tap constantly on build-number for 7 times

I love Processing and I dreamed with the chance to use it for making Android apps, as the "Android Mode" promises. Both mentioned issues (no device connection + no emulator available) as well as the endless red Java error messages couldn't never be fixed. I tried everything regarding Android Studio & SDK parameters & component installation, as well as different PC plattforms without success. Trying to configure the SDK for matching Processing's requirements was also a waste of time. Nothing helped. People who got it, they neither know how it runs nor why it doesn't.
Forget Processing for Android, use & enjoy programming with MIT App Inventor, and really start running apps in one hour. Let's use Processing for its original purposes.

Related

No supported devices connected(Flutter/android emulator)

i tried youtube, researching using google, and even read a few threads on here but i didnt find anything which could help
im using a windows 10 operating system , ive used flutter on android studio and everything works fine, i enrolled in a course and the IDE used is VSCODE for flutter app development , whenever i try launching the emulator from cmd, it says "no connected devices" , i downloaded an extension on VScode and even when the emulated device is running and i type "flutter run" it still says no connected devices
im not looking to test this on a physical device and would rather use an emulator due to reasons
I am sure you would have started the emulator before running the flutter run. I had faced the same problem earlier. I did these two things to make it work,
Setup path for in your system variables
Restart the system to bring this into consideration,
https://developer.android.com/studio/intro/studio-config

Xamarin Debugging on Android Device not working

I have an Xamarin project (On a Mac) that I'm working on. Up until today I was able to Launch it under debug, it would deploy the app and start it up attached so I could hit break points on the device. If I do this in an emulator, things work fine.
So when I run in Debug on Android, it deploys, I get no errors or messages that indicate an issue, but it just stops and is no longer running.
So what I've done
I've uninstalled and re-installed Visual Studio, no change
I've tried on multiple devices, with different OS versions
I've reset my project to be the same as others on the team, they have no issue
I've verified that the same project works fine on my Windows machine.
I've verified that I can run a Release version with no problem, I hit run, it deploys and launches the app just fine.
I can deply the iOS version in an emulator with no problems.
I've verified that if I set Debug Information to Full in the Release project, I have the same issue.
I've rebooted the device, the Mac, uninstalled the app on the device, it doesn't matter.
I'm at a loss, any help would be appreciated.
Well, there are a couple of things that connecting and deploying your app require, including setting the configuration and making sure you have the ADB installed correctly. You can check on Mac by following these steps to install Chrome and DevTools.
Another user suggested(in the comments under question):
"I would suggest trying to delete the Mono Shared Runtime and any Xamarin Android API-XX Support from the installed apps" on your targeted device.
These are the docs on Configuration Management in Xamarin
on Microsoft.com
I know it's very late answer but I had same problem and could solve it so may be it could be helpful for over people facing same problem.
Android csproj file must be located two levels lower than the .sln file. Android will disconnect when debugging if it is located in another location.
For example:
C:\Projects\Mobile\My.Xamarin.sln
C:\Projects\Mobile\My.Xamarin\My.Xamarin.Android\My.Xamarin.Android.csproj

Deploying to Android device not found in Visual Studio

I'm trying to deploy an Apache Cordova app to an android device that's plugged into the machine. However when attempting to deploy, I receive the following error:
Unable to deploy to Android device, no attached device was found. If you recently attached a device, you may need to wait a few seconds before it is recognized.
As far as I'm aware, I've enabled all of the developer settings I need in order to deploy to the device. I've tried unplugging and plugging it back in, waiting a few seconds but to no avail.
I've tried changing the connection modes (HTC Sync, Disk Drive ect) however that hasn't made a difference.
The android device I'm trying to deploy to is pretty old (v3.35.61.3), so I've even tried to deploying to a different android device running the latest version of android however the same issue occurs.
This leads me to believe that it's an issue with Visual Studio not picking up any connected android devices. Perhaps I'm missing an install package?
After smashing my head against a wall for a couple of hours, I managed to get this fixed.
I followed these instructions to install the SDKs for the target device.
There was still an issue where the abd devices command was still not showing up with any devices, I installed the Universal ABD driver which I found in this question and that worked for me.
EDIT
Some of you have found that the following can also fix the issue:
Turn on the Developer Options on the device.
Enable USB Debugging.
It might be worth trying this first, and if that doesn't work, try what I did.
I ran in to this problem and I was sure I had everything installed. After some thought I tried to deploy again, and in the developer options on the device I turned usb debugging off and then back on, this got me a prompt to remember my computer's fingerprint. After that everything worked.
I had this issue too (can't reply to the answer because my rep is too low) and I found out that when my phone updates, it turns USB Debugging off. It's worth the time to check.
I had the same issue on my S4. When I turned on the developer options the Enable USB Debugging was turned off. Once I turned that back on the issue was fixed.
First option : Enable USB DEBUGGING
Second option : Change your phone cable.

Install Android driver for Windows 8

UPDATE:
It's fixed! It turns out there was a driver on the LG site that, once downloaded, fixed the issue.
I've tried using both folders, including the usb_driver directory, but none of these directories work. It always gives me the same issue. As seen below, the 'ADB Interface' driver is most likely my android driver.
I've looked at this response to a very similar question, but none of these answers seem like they will work. I have an LG G4 phone and windows 8 on a Dell laptop. I would like to try running my application on my phone instead of an emulator, except whenever I plug in my phone, with developer mode turned on, I cannot seem to find or use my device on Android Studio. I run the application and get to the dialog that asks me to choose the device on which to run the application, but my device still does not show up. I have updated several packages on the SDK manager and tried manually installing the driver that's supposed to be in /extras/google/usb_driver/, but nothing has worked. Has anyone here been able to get their application running on their device while using Windows 8?
Make sure that USB debugging mode inside developer option is turned ON. After that you should see a dialog in your mobile to allow that computer for Debugging purpose. You can check always allow if it is your own PC

Developing Android Apps - Can't use any android emulator

I searched for days to find a way to start programming android applications however I failed every single try.
First I installed Android Studio on my Windows 7 computer, everything went fine.
After installation I tried to start a project and debug it and appeared my first error that you can see in the link below.
http://i.stack.imgur.com/q9BlJ.png
Then I searched here on stackoverflow and I searched on every single website that is related to this error. What did I learn?
I need to install an Intel package on SDK Manager
I also need to install an executable present on appdata android studio directory
I MUST disable or uninstall hyper-v to install the exe file I spoke on the step before
I searched on how to get this hyper-v out of my computer and I found many ways however when I tried this ways and then tried to install the exe file, it shows this message:
http://i.stack.imgur.com/gQjON.png
I don't know if my computer has hyper-v, the only way I can't do is going to my BIOS and disable it because I don't know the keys I need to press to show my computer BIOS (on the startup it doesn't show any label about the BIOS keys).
My computer model is Sony VAIO VGN-NS11Z_S, if someone knows the BIOS keys please tell me.
I can't use the emulator to try out my app so I gave up from Android Studio and I started with Eclipse and the ADT Plugin.
My problem is still the same, I don't if it is because hyper-v but the android emulator don't work.
Everything is fine but I can't test my app so I can't develop them too...
I really appreciate any help, I want to create Android apps so much, please give me an alternative or a way to fix my problems.
Thank you
You can try using Genymotion. It also needs some sort of hardware acceleration but give it a try.
It can't be that hard to find out the keystroke for your BIOS (EDIT: okay, it can be obviously for some devices). Just google for "your mainboard manufacturer + bios". I found this thread, one post even mentions Hyper-V.
Android Studio and Eclipse have nothing to do with the Emulator. The Emulator is part of the Android SDK which is identical for both IDEs. Throw away Eclipse (at least for Android).
As a last resort, run the Emulator with an ARM image instead of the i86 one, I think it runs without HAX and without hardware acceleration. It's damn slow though.
If you want to do serious Android development, there's no way around a real device. There's plenty of cheap options. That's just a little heads up though, I understand though that you still need an emulator for development.
Here's an interesting link on Sony's website about a BIOS update that may help (disclaimer: BIOS updates are not guaranteed to be safe, install at your own risk and make sure it's the exact right one for your computer):
http://www.sony.co.uk/support/en/content/cnt-dwnl/prd-comp/EP0000208387_4486/VGN-NS11Z
But also within that link it mentions to press F2 to get into your BIOS. Does that work for you?

Categories

Resources