I created a new project in Android Studio 0.8 in order to start integrating Android Wear into one of my apps. I create a new project and include the Wear form factor, but when I try to sync I get:
Error:Could not find any version that matches com.google.android.support:wearable:+.
Required by:
win_control:wear:unspecified
EDIT: I played around with Gradle a bit, and now I get these errors:
Error:Failed to find: com.google.android.gms:play-services-wearable:+
Open in Project Structure dialogOpen File
Error:Failed to find: com.google.android.support:wearable:+
Open in Project Structure dialogOpen File
Had the same problem. Open up your Android SDK manager, go to tools -> manage add on sites, and add your own repo:
https://dl-ssl.google.com/android/repository/addon-play-services-5.xml
I finally found these helpful guides. There are lots of broken links and bad info floating around, but these should work:
http://developer.android.com/preview/google-play-services-wear.html
then,
http://developer.android.com/training/wearables/apps/creating.html
Also, double check your android sdk manager to make sure you have all the latest updates, as well as the android support repository/libraries!
All the suggestion here at SO are now outdated.
What you should do is make sure "Google Repository" is checked and installed in the SDK manager.
If all of these didn't work for you, check out the instructions at https://code.google.com/p/android/issues/detail?id=72454
For me, I was simply missing Google Repository from the extras section in the sdk manager
If the SDK manager doesn't find any updates for you, it helped for me to wipe the m2repository folder under ~/.android/extras/google/.
You can manually add the update site by using your favorite text editor on ~/.android/repositories.cfg, it should look like this:
### User Sources for Android SDK Manager
#Wed Jul 02 10:15:39 EDT 2014
count=1
src00=https\://dl-ssl.google.com/android/repository/addon-play-services-5.xml
I found out that, as of Android Studio 0.8.1, the option "Manage Add-On Sites" is absent from the Tools menu. Just in case someone else can't find it either, here's how to get to it :
1/ Go to Tools > Android > SDK Manager.
2/ Then, once the SDK Manager is opened, in the top menu go to Tools > Manage Add-On Sites.
There you go, then you just apply what nickjm said (thanks for the tip btw, I was wondering what was going on with this error message !).
Adding the add on site did not work for me. In the android SDK, I simply opened up:
Tools->Options...->Enable Preview Tools (Check it)
Then it had an update for the wear stuff ... which I, of course, updated.
This allowed the library to be referenced by the IDE.
Related
I'm using com.google.android.gms:play-services:7.5.0 which requires: support-v4:22.0.0. Ok no problem right? -- so I download it via SDK Manager:
Now, Android Studio still reports that it cannot find com.android.support:support-v4:22.0.0:
Could not find com.android.support:support-v4:22.0.0.
Searched in the following locations:
https://jcenter.bintray.com/com/android/support/support-v4/22.0.0/support-v4-22.0.0.pom
https://jcenter.bintray.com/com/android/support/support-v4/22.0.0/support-v4-22.0.0.aar
file:/C:/android-sdk/extras/android/m2repository/com/android/support/support-v4/22.0.0/support-v4-22.0.0.pom
file:/C:/android-sdk/extras/android/m2repository/com/android/support/support-v4/22.0.0/support-v4-22.0.0.aar
file:/C:/android-sdk/extras/google/m2repository/com/android/support/support-v4/22.0.0/support-v4-22.0.0.pom
file:/C:/android-sdk/extras/google/m2repository/com/android/support/support-v4/22.0.0/support-v4-22.0.0.aar
So then I go to the location ( C:/android-sdk/extras/google/m2repository/com/android/support ) to see for myself, and of course its not there. Now I know the download suceeded, so I search my drive for it. Turns out the SDK manager downloaded it to: C:\android-sdk\extras**android**\support\v4 instead. So I tried to import the jar file contained in that folder to my project but that did not work. How do I get around this?
The "Android Support Library" entry in the SDK Manager is primarily for Eclipse users. You are using Android Studio, so what matters is the "Android Support Repository", which you have not updated in the SDK Manager.
I want to set local documentation path in android studio 0.8, but i cant do this. I google this, but i can't find any solution for this problem. Can any body help me please.
Thanks a lot.
I found the solution in Android Studio 2.1 :
First, you have to see which Android SDK you are using from the Project Structure. Currently I am using Android 7.0 because the problem was caused by Android 7.1.1 SDK (I will explain why).
Now, open the Standalone SDK Manager. Find the SDK version that you use, then select Documentation for Android SDK then Install package and you will have a local copy of the docs automatically used by your AS.
As you can see, there is no documentation available to download for Android 7.1.1, that's why Android Studio was loading it from the Android developer website.
So, the solution is to use an Android SDK that has a downloadable documentation.
I had the same problem.Documentation was empty when I used documentation shortcut(ctrl + Q) and I also couldn't change the documentation paths because it wasn't there! so here is the solution:
Delete C:\Users[user name].AndroidStudioBeta folder.(Don't worry it just delete your configurations! ;) )
rename C:\Program Files (x86)\Android\android-studio\sdk (SDK path)folder to something else.
run Android studio and make sure you don't import you configurations.
Now you can change new sdk folder's name back to SDK .
Android studio will ask you new path for SDK ,so you can continue.
If you have downloaded the documentation using SDK manager, it'll get added automatically when you add an SDK in "Project Structure"
In Android Studio, You can verify this by selecting File -> Project Structure -> SDKs (on left pane).
Select one added SDK from the list, Select the tab "Documentation Paths" from right most pane. Check whether the path is automatically added. If not, add it manually by clicking the plus (+) button on right.
The only way I could accomplish this on AS 1.0 is to run local web server (Abyss Web Server) to host the documentation from here (C:\Program Files (x86)\Android\sdk\docs). And use Fiddler as proxy to remap url developer.android.com to 127.0.0.1:8080 (Abyss address), setting Fiddler's address as proxy in AS settings.
Oh, and created a .bat file to run and stop this all together.
Really dirty trick, but the only I found.
"Location of the Android SDK has not been set up in the preferences in 64 bit Windows" - I know this problem has been addressed before several times, but rather than comment on an old question I decided to make a new one because still it's not solved.
Recently I changed my system from 32 to 64 and currently I cant Run my ADT. When am using 32 its works fine. I installed 64 bit ADT (Build: v21.1.0-569685) and updated everything. Now My ADT contains 6.41 GB.
Now when am trying to run Eclipse I got a popup like
When I am searching this I got a solution like Window -> Preference -> Android -> SDK Location Set the path of the Android SDK in your computer there.
But when I am trying for this OK button is not enabled.
When I am trying to Access AVD again a popup came
When I am trying to create a new Project, another Popup is shown like
When I am trying to update - Mo Updates Found message is showing
Can anybody offer some advice on this problem?
How to Update your ADT to Latest Version?
In Eclipse go to Help
Install New Software ---> Add
inside Add Repository write the Name: ADT (as you want)
and Location: https://dl-ssl.google.com/android/eclipse/
after loading some time you will get Developer Tools and NDK Plugins
check both if you want to use NDK in the future or check Developer Tool only
click Next
Finish
Now My Problem Solved :-)
The issue may arise if you are running IntelliJ Idea or any other IDE that uses / shares the same Android SDK. After running IntelliJ Idea, and thereafter running Eclipse, the Eclipse IDE fails to get the path of the SDK. In Eclipse go to Window > Preferences > Android and change the back slashes to forward slashes. For e.g, D:\eclipse\android-sdk to D:/eclipse/android-sdk and press Apply.
I have faced the same issue
Solution: go to the below URl https://dl.google.com/android/adt/adt-bundle-windows-x86_64-20140702.zip Extract the folder and now go to the preferences and select the SDK folder from the Extracted Folder, and apply it . the problem will be resolved
Go to preferences, find "Android" on the sidebar and then there will be a box for SDK location, point it to the SDK. Read over http://developer.android.com/sdk/installing.html if you're still stuck.
OR
Go To Eclipse >> Windows >> Preferences and click on the left tab Android and you will see the below image with some text above as
“This Android SDK requires Android Developer Toolkit version 14.0.0 or above. Current version is 11.0.0.v201105251008-128486. Please update ADT to the latest version.”
And Update..
Go to Eclipse >> Help >> Check for Updates.
Please don’t forget to close Eclipse after the Updates complete.
How to update your ADT to the latest version:
In Eclipse go to Help ---> Install New Software ---> Add ---> Add Repository
Write the Name: ADT (as you want) and Location: https://dl-ssl.google.com/android/eclipse/
After loading some time, you will get Developer Tools and NDK Plugins
Check both if you want to use NDK in the future, or check Developer Tool only
Click Next
Finish
It means the "Android SDK" folder is empty, that's why it does not want to add it to Eclipse. Here are the contents of the Android SDK folder:
Windows: https://dl.google.com/android/adt/adt-bundle-windows-x86_64-20140702.zip
Mac: https://dl.google.com/android/adt/adt-bundle-mac-x86_64-20140702.zip
Download and extract the contents to a new folder and name it android-sdk and link that directory to Eclipse and you are all set!
When I want to create new android Project, everything is OK but after the last step (about activity) eclipse said it has problem and said:
this template depends on the android Support library, which is either not install, or the template depends on a more recent version than the one you have installed.
link
required version 8
installed version: not installed
and If I use "upgrade/install" bottom, eclipse said :Android Compatibility JAR not found.
I found this solution on the net but I could not use it:
Steps:
Run your Android SDK Manager
Find Extras > support Library and delete that particular Library
Now Relaunch Android SDK MAnager
Download the Extras > support Library present
there is sth important: I am in Iran, because of the boycott, we couldn't download easily.
I use these tools:
Java.SE.Development.Kit.v7.0.Update.5.x86_p30download.com.exe
Eclipse:
Version: Juno Release
Build id: 20120614-1722
ADT-20.0.0
platform-tools_r13-windows.zip
android-2.3.3_r02-linux.zip
tools_r20-windows.zip
I think you are correct about the way to solve the problem - you need to download a package with SDK Manager.
I'd tried to upload my libraries, but not registered at any file-upload services. So I will recommend you to use some ananymizers or smth like Tor ( http://en.wikipedia.org/wiki/Tor ) and download all necessary libraries for development.
Good luck.
try update your ADT plugins (currently 20.0.3), go to Eclipse > Help > Check for Updates, not sure if this is the place in Linux
This happened to me too, but now solved by Right click on SDKManager.exe then run as administrator and download your required packages
according to : http://comments.gmane.org/gmane.comp.handhelds.android.devel/220558
I had a same problem so i used proxy.
in Eclipse go to :
windows-->preferences-->general-->network connections
And for SDK manager
In the Android SDK Manager go to :
Tools-->options-->enter your proxy
Now you can update your eclipse and sdk with no problem
I hope this work for you:)
Has anyone had any luck getting IntelliJ to recognize and display the android java docs?
It works out of the box since Android SDK configuration in IDEA automatically adds JavaDoc directory into Documentation Paths.
Make sure you've downloaded the SDK completely including the documentation using the SDK Manager. On my system they are located under SDK_ROOT/docs/reference and this directory is automatically configured in IDEA Android SDK.
Make sure that the directory containing the documentation is in Documentation Paths. For this, do the following:
In Android Studio, open File -> Project Structure
Click on SDKs under Platform Settings
Select Android <version> in the middle panel
Add the following path under the Documentation Paths tab:
path_to_android_sdk/docs/reference
If you have not downloaded the documentation in SDK Manager, please do so before performing this procedure.