We are trying to install a set of eclipse plugins from the commandline.
First we need to install ADT plugin.
Then we are trying to install a plugin which dependent on the ADT plugin.
The installation of the dependent plugin is failing with an error:
Missing requirement: "OurPluginName" ("Ourplugin.feature.group") requires 'com.android.ide.eclipse.adt 11.0.0' but it could not be found
We are using the following command to install a plugin from the commandline:
eclipsec.exe -application org.eclipse.equinox.p2.director -repository [our-update-side] -installIU [our.feature.group] -destination "[eclipse-install-directory]"
We observed the following:
If we only install the ADT plugin then start the eclipse IDE in UI mode, stop it again and perform afterwards an installation of the plugin which is dependent on the ADT plugin, the above error is not occurring.
So the question is now: How can we install the dependent plugin via command line without starting the ecilpse IDE manual.
Do you know a way how to update the eclipse repository from the command line?
Thanks for a hint.
Best Regards
Frank
The issue is solved :-):
Do it in the following way:
Download the ZIP File containing the ADT plugin, don't download it via the update side!
Extract the ZIP-File content in your eclipse folder.
Now you can install additional plugins dependent from the ADT plugin as described above.
Hope this helps you too.
Best Regards
Frank
Related
I'm on windows7 x64, installed today's latest stable release of android sdk studio (through android studio bundle, since it's shipped together now apparently). I have properly configured the environment variables as you'll see above.
This is what I get when issuing the following command
$ cordova build android
ANDROID_HOME=G:\installs\Android\sdk
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_121
Error: Could not find gradle wrapper within Android SDK. Might need to update your Android SDK.
Looked here: G:\installs\Android\sdk\tools\templates\gradle\wrapper
And indeed, the "templates" directory doesn't even exist in my sdk install.
I've already tried the suggestions (setting the right path, uninstall/reinstall) of this question here but nothing applies to my case, and I find that manually copying and pasting packages is not really a solution, since there's a package manager in place.
If anybody has an answer as of today's android install, would be very much appreciated.
If still not working then copy all file from gradle\wrapper from Android Studio installation folder
C:\Program Files\Android\Android
Studio\plugins\android\lib\templates\gradle\wrapper
and paste it in your Android SDK gradle\wrapper then run same command.
E:\android-sdk\tools\templates\gradle\wrapper
This is a known issue; see CB-12544. For now you'll need to downgrade.
I downloaded Android SDK r25 manually and placed templates folder inside Android/sdk/tools. This solved the issue for me.
You can get it from https://dl.google.com/android/repository/tools_r25.2.3-macosx.zip
For Windows:
https://developer.android.com/studio/index.html
Go to the section :"Get just the command line tools"
There is a link 'sdk-tools-darwin-3859397.zip' for Mac, Unfortunately that didn't have the templates folder with Gradle Wrapper. So for Mac users, i will suggest not to go for this zip.
I am getting continuous failed installation problems while installing the Genymotion plugin for eclipse.
The error log says "It requires the bundle org.eclipse.core.runtime 3.8.0".
Error Log:
Cannot complete the install because one or more required items could not be found.
Software being installed: Genymotion Eclipse Tools 1.0.1.201307161043 (com.genymobile.genymotion.ide.eclipse.feature.group 1.0.1.201307161043)
Missing requirement: Genymotion 1.0.1.201307161043 (com.genymobile.genymotion.ide.eclipse.plugin 1.0.1.201307161043) requires 'bundle org.eclipse.core.runtime 3.8.0' but it could not be found
Cannot satisfy dependency:
From: Genymotion Eclipse Tools 1.0.1.201307161043 (com.genymobile.genymotion.ide.eclipse.feature.group 1.0.1.201307161043)
To: com.genymobile.genymotion.ide.eclipse.plugin [1.0.1.201307161043]
I think the answer is simply installing Eclipse Juno (or higher) and installing Genymotion plugin in that instance.
It seems Eclipse Indigo doesn't include an updated version of org.eclipse.core.runtime.
I solved this by simply modifying the name that I had entered for the plugin that I was installing. In the name text field option available after clicking add new on help > Install new software, make sure the name you provide is one word(could include underscores) without any spaces in it.
If Help->check for updates doesn't help, download an updated Eclipse version from http://www.eclipse.org/downloads/
I've created app with "phonegap create" command. Then I switch to project dir and try to run it with "phonegap local run android" and I have next error message:
Please install Android target 17 <...>
Android SDK is placed to C:\dev\sdk
My PATH variable contains C:\dev\sdk; C:\div\sdk\platforms\;C:\dev\sdk\platform-tools
I run "android" command from cmd and SDK Manager shows no updates or no missed sdk files.
I tried create and run project with cordova cli but had same problem.
What can it be?
It seems that for latest Cordova (3.0.6),
cordova platform add android
command only recognize Android 4.2.2(API17) SDK. After I install the API17 SDK, the error was gone.
Not sure if there is a cordova command option that can specify SDK version.
I had just the same problem (error message) with os x (10.8).
After executing the command android in the Terminal some android-packet-management-UI popped up. There i could install stuff that made it run ..
I had API17 installed but was still getting this error.
I needed to install apache-ant, set ANT_HOME=C:\Program Files\Java\apache-ant\, JAVA_HOME=C:\Program Files\Java\jdk1.7.0_21\ and add both bin's to my PATH += C:\Program Files\Java\jdk1.7.0_21\bin;C:\Program Files\Java\apache-ant\bin
See https://stackoverflow.com/a/13986997/956397
I had the same problem and the very most simple way to resolve it is changing the target in project.properties to 16 and try.
it seems if you type "android" at the same command prompt you type your cordova commands, you get a separate Android SDK manager then the one launched via Eclipse and so then there you select the appropriate packages and updates to achieve the version number of the Adroid SDK required. For me I'm guessing it's from an adt-bundle I installed with _? (I don't know actually no clue) that runs instead.
My best guess is the installer when updating doesn't doesn't update the path correctly.
Ya you need to manually correct duplicates and anomalies in the path.
Point to the "sdk" folder and tools of a valid most current adt-bundle-windows folder.
Maybe it was NetBeans that did this?
No it seems plausible when I put an update of Eclipse (C:\Library\Dev\Android\adt-bundle-windows-*) I must have not realized I needed to update the path too having done it manually the first time to get it to work.
It seems I needed plateform-tools added as well for adb to run the emulate command...
C:\Library\Dev\Android\adt-bundle-windows-x86_64-20131030\sdk;C:\Library\Dev\Android\adt-bundle-windows-x86_64-20131030\sdk\tools;C:\Library\Dev\Android\adt-bundle-windows-x86_64-20131030\sdk\platform-tools;
I am using Eclipse Indigo on Windows 7 and have repeatedly tried to install the ADT Plugin for android but to no avail. I have tried: using Eclipse 3.6, downloading the .ZIP file, checking for updates and trying again, using the "http" protocol instead of the "https" in the repository. None of them worked.
However, whenever I try to install it, it either freezes at "calculating dependencies and requirements" or says
"Cannot complete the install because one or more required items could not be found.
Software being installed: Android Development Tools 16.0.1.v201112150204-238534 (com.android.ide.eclipse.adt.feature.group 16.0.1.v201112150204-238534)"
Someone please help, I desperately need android for my projects.
Run Eclipse as Administrator, if you're not already.
What package of Eclipse did you download? Perhaps the package you have doesn't include some pre-requisite that ADT needs.See if my answer to this question help solve your problem.
Also, it would help to see more of the failure reason. We know you're trying to install ADT, what's important is what comes after that, the part that tells which requires items can't be found.
It seems this issue is due to proxy. Please try to download plugin locally, by link:
dl.google.com/android/ADT-16.0.1.zip
extract zip file.
In Eclipse go to help-> install new software-> Select add
Select to local, and browse to your downloaded package. If problem still persists, try without proxy.
I'm working my way through APress's Beginning Android 2 and I've made it all the way to chapter 3, where we build a skeleton app. The book tells me to compile my application by typing "ant" in the command line, but my pc doesn't know what "ant" is yet. I checked in the SDK files and it looks like it wasn't included with the Android SDK. Does anybody know where ant is?
Thanks
Ant isn't included with the Android SDK. I suggest you get it from the official site.
Ant is tool to build projects from commondline and it is different tool. It's not android specific. So if your are using a Debian-based/Ubuntu machine you can install it by
sudo apt-get install ant
I know it is a bit odd, but even I install brew install ant and rebuild / re-sync the gradle file, it still doesn't work, so I restarted my Intellij and it started to download the ant1.7 again from maven.