I've always used my android phone for development but after installing the last software update on my device (4.2.2) it suddenly stopped working and would appear offline in eclipse's Device Window Chooser.
I'm not able to send applications to it for testing or access it with the adb-shell. I have developer options turned on and debugging mode enabled. I'm using Eclipse Helios on Ubuntu linux.
When I launch Eclipse the following window will show up
and after clicking on the check for updates I get the following error:
Unable to read repository at jar:file:/home/matteo/Downloads/ADT-18.0.0.zip!/site.xml.
error in opening zip file</code>.
Last thing, if I open Window->Preferences and go on Android I see this:
This question is not a duplicate of Android device chooser - My device seems offline (of which I read every single line). It's a request for some rigorous solution from the community. In fact non of the proposed solutions helped me in getting my device to appear online, as you can see in the attached snapshot.
Please help me! Any suggestion will be very appreciated! ;D
Ok open sdk manager /sdk/tools/android now download the sdk for your new android version. In my case it was API 17. Once its done you should be ready.
If you still got some issue be sure that you have the last version of the ADT installed. Installing it again http://developer.android.com/sdk/installing/installing-adt.html
Now you should be ready to go.
Related
All packages are not available for download!
The following packages are not available:
- Package id sources;android-24
Am trying getting data from database by using of web services, when am running the application getting an above shown error.
How can I resolve this issue in the android studio?
Open SDK Manager -> SDK Platform
Check on Show Package Details and Sources for Android ... then download
The popup error is not related to the exception you got on your application. Api 24 source code is not fully available. Hence you got the error. Change complieSdkVersion and targetSdkVersion to 23 and sync the gradle.
I just closed my IDE then restarted my computer. When I opened the IDE the error was no more.
Make sure you have good internet connection, as the error might be caused by a lack of internet connection preventing the IDE from reaching the site.
Check if the SDK version is installed on Android studio for that particular Android device. e.g. If Android Device has version 4.3 then check if SDK for this version 4.3 is installed, you can check it through Android Studio SDK manager. If not installed then install it complete.
Restart Android studio, reconnect the device, That's it
A thing I ran into, check to see if you have more than one android sdk on your box. I'm not sure if it was confusing Android studio or not, but I had one previously installed under Program Files. I ended up going into the AppData\Local\Android version used by Android studio and adding stuff I needed manually running the SDK manager as administrator.
This means that you can't reach the download site, and it has many reasons one of them is that you are in a country in wich the American laws won't allow to use such technology so you have to use a proxy program and to configure the sitting in your Android studio to use the proxy gate and port.
I'm trying to run an application using the latest Google Play Services (5.0.89 at the moment) on the android emulator, but every time I open it, I get the notification asking me to update G.P.S. I'm using a "Google API L18" AVD. And this is quite annoying if you're trying to run some espresso tests.
Apparently, it's a common problem that keeps plaguing android developers: https://code.google.com/p/android/issues/detail?id=57880
So far I've tried:
just clicking ok -> but then I'm not connected to the services, which is bad
switching to the Android L Preview AVD -> same problem
downloading the G.P.S. apk from somewhere and trying to install it. Fails, since it's already present (and cannot be uninstalled)
creating and AVD without G.P.S. and installing them manually. I get a "device not supported" error
installing just a few packages (like this "adb -e install com.google.android.gms.apk) -> but I cannot find them for the 5.0.89 version
in my application code, ignore the error returned by GooglePlayServicesUtil.isGooglePlayServicesAvailable -> the connection still fails (which means that simply not checking is not an option)
UPDATE Trying to edit the value of GooglePlayServicesUtil.GOOGLE_PLAY_SERVICES_VERSION_CODE through reflection -> didnt't work (btw, yes I know it's an horrible hack, at this point it was more curiosity than anything else)
So, did anyone find a solution for this?
So far, the only option I can come up with to make it work is to delete my local copy of G.P.S. from the SDK tools, replace it with a previous version downloaded from somewhere (I haven't looked for it yet, but I'm pretty sure I'll be able to find some shady site providing it) and then rebuild my app. But this isn't something I'd like to do.
If you go to the SDK Manager and check for updates, there should be an update for the API 19 system images. Have you tried updating to those and recreating the emulator and seeing if the problem persists?
I have just started programming on nexus 5 phone and sony smartwatch. I tired to install a sample program (HelloLayouts) on the device and it shows the following msg:
[HelloLayouts] Uploading HelloLayouts.apk onto device '.......'
[HelloLayouts] Installing HelloLayouts.apk... [HelloLayouts] Success!
[HelloLayouts] \HelloLayouts\bin\HelloLayouts.apk installed on device
[HelloLayouts] Done!
I checked applications from Smart connect but it doesn't show any installed program name hellolayoputs. I also checked the smartwatch, but didn't see any installed application. Not sure if I am missing anything.
any suggestion to solve this problem would be highly appreciated.
Just a few questions:
Did you modify the HelloLayouts sample file at all or did you just run the sample right after installing it? If you did modify it try creating a new sample from scratch and running it again.
Are you running your samples with Eclipse, or Android Studio, etc...?
Are you using the latest Android SDK v 23.0.2?
Also you may want to try restarting your phone and watch to see if you can at least see the app showing up in the SmartWatch 2 app.
May be Launcher Activity is missing or corresponding 'category' tag is missing from 'intent-filter' of launcher activity your Android Manifest file. Check it or post your AndroidManifest.xml file.
Many times I cannot get my application to install on the emulator.
I receive the following error from Eclipse:
[2010-08-06 09:33:48 - Emulator]
2010-08-06 09:33:48.868
emulator[392:903] Can't open input
server
/Library/InputManagers/MultiClutchInputManager.bundle
The emulator boots, but the application is not installed.
MultiClutch is a 3rd party preference pane for OS X that allows you to capture gestures and specify what they should do. I've uninstalled MultiClutch (using AppCleaner), yet I still receive this error. I'm not quite sure what makes Eclipse decide to ignore it, but after attempting to run enough times, a NEW (read: second) emulator window will open and the application will install.
Any ideas?
This is because of the library component of the Android is not proper.
solution : what you can do is update the Android SDK. and create new AVD and install latest ADT plugin it will be resolved
I'm a n00b developer at my second attempt to use the Android SDK. I'm
developing on the Mac platform and I've noticed that the latest
version of the SDK doesn't include anything except the tools (so I
have no plugins, no targets to choose from inside the package I
downloaded).
So I tried to use the Android SDK and AVD Manager to download and
install some, however, I got this error:
Failed to fetch URL https://dl-ssl.google.com/android/repository/
I went to the settings and checked the box to force fetching via HTTP,
but no result. I was suggested to look for a configuration file, but
couldn't find any.
Any suggestions? I'm dying to get my hands dirty with the SDK.
Whenever I've seen that error, I've just retried the download several times and eventually it went through. I've only run into it when I was behind a proxy, but that might not be your problem.
Here you have a Android tutorial, step by step.
http://www.vogella.de/articles/Android/article.html
Its means that you are behind a proxy.Go tools->options in your android SDK manager and enter your http Proxy server and port and it'll work.