Android debugging -Nexus 7 - status offline in eclipse- mac - android

I just want to test my android application in my Nexus 7 device in my mac.
I connect the Nexus 7 tablet to my mac through USB connection. While I try to run , its status is offine.
I also tried to run my android application in Windows machine. There I installed one driver for Nexus 7. Windows detect the Nexus and I can able to run my application in Nexus.
Is there any special driver needed for Mac?
Please provide me the best way t overcome the issue

several suggestions :
1. You have to authorize every machine you use since android 4.2
2. Check if you need to update your sdk.
You have to update to the proper API level and to usb driver (under extras -> Google usb driver). Then change the driver of your nexus 7 to the new one. You can find it at your android-sdk folder.
3. If that won't help you call to : 'adb devices' (Windows commend - I guess that it has to be the same at mac)

Did you check on your device:
Enable USB debugging on your device.
On most devices running Android 3.2 or older, you can find the option under
Settings > Applications > Development.
On Android 4.0 and newer, it's in Settings > Developer options.
Note: On Android 4.2 and newer, Developer options is hidden by default. To make it available, go to Settings > About phone and tap Build number seven times. Return to the previous screen to find Developer options.

Related

Android Studio doesn't show my device in the "Device Chooser" dialog. I don't want to use the emulator

I searched for the answer before asking. They weren't satisfactory.
Environment and what I did so far:
My device is Xiaomi Redmi 2. I have enabled USB Debugging in my device.
My phone uses a Cyanogen mode with 5.1.1 installed ( Lollipop ) and not 4.4 ( Kit-Kat )
It is also connected as a media device as asked in an answer
I'm running android studio on Windows 8.1.
I don't want to change my OS if that's possible.
Minimum level it is set to be API Level 15 so all the devices with ICS will be supported.
Questions:
Do I need to install a driver and if yes, what driver do I need to install to make it work?
If I need it how do I use it?
Where do I get it from?
I have to mention that I am using this site for the first time so I might not know the best way to search.
Any tips on that?
It may just be that the MTP mode isn't supported. Try changing your usb connection to PTP in your device's usb connection settings.
Taken from the Android Studio User Guide.
If you are developing on Windows and would like to connect a device to test your applications, then you need to install the appropriate USB driver.
Find the appropriate driver for your device from the OEM drivers table.
Once you've downloaded your USB driver, follow the instructions to install or upgrade the driver, and whether you're installing for the first time or upgrading an existing driver.
Update your android studio and your android project :
Android Studio > SDK Manager (top right of the ide) > Launch Standalone SDK Manager > uncheck the 'installed' checkbox > make sure you have all the recommended updates, tools and apis installed to your development machine.
Update your android project manifest file (AndroidManifest.xml) on about line 20 usually to match the target SDK version you want to build for :
You have to install ADB USB driver manually
Try the below link
http://visualgdb.com/KB/usbdebug-manual/

Android device not recognized by android studio

I have 2 android devices. One is samsung tablet and the other one is general mobile discovery phone. Android studio recognizes samsung tablet when i choose debug mode and I successfully run my simple applications on the tablet. However the studio doesnt recognize my phone. Im using Win7 and my pc recognizes the phone to copy files from/to. Can you suggest any solution?
Sure that you have installed in your TOOLS:
This is similar to an answer I submitted before.
Android error No, minSdk(API 19) > deviceSdk(API 1)
There are a few things to check.
if you go to the terminal window in Android Studio and cd to the path where your sdk platform tools are installed (something like C:\Android\SDK\platform-tools ) and run the following command
adb devices
Do you have a device listed? If not then you don't have the device setup properly, or the correct drivers.
On the phone make sure that you have developer options enabled (go to settings->about phone and click on the Build Number 7 times or so)
Once you have enabled that go into the develop options under settings and make sure USB debugging is enabled.
If you are using Mac or Windows then try PdaNet, this tool works with most devices and really useful if you are using devices by regional or country based manufacturers.
Maybe your PC not install the driver for the mobile device. Try download UniversalAdbDriverSetup6.msi from http://hexamob.com/news/download-android-usb-drivers-for-onda/

Android Studio is not detecting Nexus 7

I am using Android Studio 1.1.0 under Windows 8.1 Pro and trying to connect my Nexus 7 running Android version 5.1.
I am following both Lynda tutorial and looking at android developers tutorials but was not able to find what's wrong.
The device is visible in the Device Manager:
The Google USB driver has been installed:
I have enabled a lot of Developer options of my Nexus 7 including:
USB debugging
Stay awake
Bug report shortcut
I am not seeing the details when I try either to run or debug the application. The device is not listed here (as shown in the video):
I have try to:
add android:debuggable="true" in AndroidManifest.xml
restart the PC
reconnect the device
I was not able to find Unknown sources option in the Developer options which was recommended in some other answers of this issue.
Could you advice what to try?
Click Revoke USB debugging authorization in Developer option and try it again.
Go to Settings -> Usb Connectivity -> Usb connection mode -> Check MTP mode.
And try sudo adb devices.
I suggest re-installing your ADB Drive in the Android SDK file and making sure your device is in Debugging mode.
I have decided to change my OS and install Ubuntu 15.04 instead. After I installed the Android Studio what I needed to do was to simply connect my Nexus 7 with my computer - the studio detected it immediately - no additional drivers and settings were needed at all.
Go to developer settings and change USB-mode to Charging.
Solution for Android M.

Running App from android studio on my device

I am having problem connecting my device(nexus 5) to the android studio.
Everytime I click the run button it says USB device not found even when I have connected my device to the laptop via usb and have installed the usb driver in the sdk manager.
please help
If you have Android device, here's how you can install and run your app:
Step 1:-Plug in your device to your development machine with a USB cable. If you're developing on Windows, you might need to install the appropriate USB driver for your device. For help installing drivers, see the OEM USB Drivers document.
Step 2:- Enable USB debugging on your device.
Note that,On most devices running Android 3.2 or older, you can find the option under Settings > Applications > Development.
note :- On Android 4.0 and newer, it's in Settings > Developer options.
Note: On Android 4.2 and newer, Developer options is hidden by default. To make it available, go to Settings > About phone and tap Build number seven times. Return to the previous screen to find Developer options.
In order to debug over USB, set up your Nexus 5 for development by enabling USB debugging on your Android device:
Go to Settings > Developer options. On Android 4.2 and newer, the developer options are hidden by default. To make it available, go to Settings > About phone and tap Build number seven times. Just tap it 7 times, even if it seems crazy. Then, return to the previous screen to find Developer options.
In Developer options, confirm that USB debugging is checked.
Ref: https://developer.chrome.com/devtools/docs/remote-debugging

Tablet not connecting to Eclipse

I have a D2-721 Android 4.1.1 Tablet. I have installed all the drivers for it. I have connected the tablet to my pc and everything is normal except eclipse. I can even Export my APK from Eclipse to my tablet but I cant run as android app from eclipse. My phone works fine. Eclipse sees the phone but not the Tablet. Is the problem my SDK? IS there something special I need to connect that kind of tablet to Eclipse? i have version 17 of Android SDK by the way
Make sure you have enabled USB-Debugging on your device. It's step 2 as described here:
http://developer.android.com/tools/device.html#setting-up
You need to do some magic to get it all enabled.
On Android 4.0 and newer, it's in Settings > Developer options.
Note: On Android 4.2 and newer, Developer options is hidden by default. To make it available, go to Settings > About phone and tap Build number seven times. Return to the previous screen to find Developer options.
Did you install the OEM Drivers? and you need to install the appropriate USB driver.
If already installed then need to update OEM driver
Had similar problem with Nexus 7. Try this, connect the device, then swipe down your notifications on the status bar (left side), tap on Connected as a media device and change that to Camera (PTP).

Categories

Resources