I have Android-studio 2.3.2 (which is android-studio-ide-162.3934792-linux.zip) installed, which is the latest stable version. I am using fedora 24. I am using meteor 1.4.4.2
When I build an APK using "meteor build" I get this error:
While building Cordova app for
platform Android: Could not find gradle wrapper within Android SDK.
Might need to update your Android SDK. Looked here: ~/Android/Sdk/tools/templates/gradle/wrapper
It seems to me the path to gradle wrapper has changed on the latest version of Android-studio. I don't have a previous version of Android-studio to prove this though. I've searched for previous versions of Android-studio and could not find them. I have searched for a solution but there is no one out there who seems to be solving this issue.
You will find a solution in this other thread and some explanation in this answer
The explanation is that the linux version of cordova does not search for gradle in the Android studio install folders like for Windows (and even for windows it does not find it if android studion is not installed in c:\program files\android\android studio) or Mac .
On Linux (and maybe for Mac&Windows in future versions of Cordova), you have to install a version of gradle and add it to your path (way to install gradle depends on the version of Linux you're using)
The behaviour was different in the past because android sdk was not inside Android studio like it is now. You could find gradle in the ANDROID_HOME/tools folder.
With recent upgrades, Android SDK structure has changed and it is now part of android studio.
Installing android-sdk_r24.4.1-linux.tgz which installs version 25 or higher version by default solved the problem for me. Because I could not find a way to uninstall Android Studio I had to uninstall and re-install my linux.
See https://gist.github.com/rolandboon/0a5abe1d9c6c515c59ec for downloading and installing the sdk
Related
I have a cordova project in visual studio. When running the app onto a device the error
Could not find gradle wrapper within Android SDK. Might need to update your Android SDK
keeps popping up. I have android studio, android sdk(updated) installed. The adb is working and detecting my device all fine. I have searched a lot and most of the answers that i have found are telling to download the sdk once more. But i already have it on my machine.
Visual studio is looking for the gradle wrapper in the location
path-to-sdk\tools
folder. So what i did is copied the template folder from
C:\Program Files\Android\Android Studio\plugins\android\lib
and pasted that folder into the above sdk tools folder. Re-ran the project. Fixed it.
For a client of mine, I try to run the meteor run android command on a mac and I got the following message:
β Java JDK
β Android SDK
β Android target: Android SDK not found. Make sure that it is installed. If it is not at the default location, set the ANDROID_HOME environment variable.
The situation so far:
PATH is correctly defined with links to the tools and to the platform-tools, ANDROID_HOME is fine too
The emulator and the SDK are installed with Android Studio
gradle is not found either, the tools/templates/wrapper path does not exist, which make me suspect a bad SDK installation, yet Android Studio handles everything
Meteor version is 1.3.3 for this project, and of course android paltform has been added to the project, which run fine on my Linux laptop
Verbose is not that verbose, in which situation Android SDK is okay and Android target is not ?
This is very hard to debug and I am desperate to find a solution, this issue seems unresolved in other related threads. Thanks for your help!
This is actually a bug due to the new version of the Android SDK Tools (> 25.3).
The solution is to go back to 25.2.x, the Meteor guide mobile page has been updated a few hours ago.
See the related Github issue
Links to download 25.2.5 version:
https://dl.google.com/android/repository/tools_r25.2.5-linux.zip
https://dl.google.com/android/repository/tools_r25.2.5-macosx.zip
i want to use Apache Cordova in visual studio 2013.
I followed the instructions on installing Apache tools manually from this
When i create new project with Template apache cordova app get this error:
1-Android package
I installed latest the Android SDK with the following package:
2-WebSocket4Net
I Downloaded WebSocket4Net(0.9).Binaries.zip from CodePlex
and installed visual studio in drive D :
D:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\CommonExtensions\Microsoft\WebClient\Diagnostics\ToolWindows
then copied WebSocket4Net.dll to ToolWindows folder
Seems you alreay have the required component installed.
It might be a false alarm by the visual studio dependency checker. Actually, I have some warnings as well, but everything works well. If you did not encounter any problem during building app, feel free to ignore the warning. WebSocket4Net is only required for win7 and if ripple works well, leave it there.
P.S. don't upgrade Android 24.3.2 for now, because there is a known issue that will cause build fail when trying deploy on Android device and android emulator.
Just download latest Android SDK version from Android developers site, run ./android tool (i use Mac OS X 10.7.5) and i got next error:
Android SDK Tools: Not compatible with Other
http://qblx.co/ZCrpcI
So, what does it mean? What is wrong?
Never saw that. Better uninstall and reinstall everything. Clean up (rm -rf) the android sdk folder and reinstall.
I resolved this issue, it was Java 1.7 preferences, just removed Java 1.7, here are 2 links about this issue:
http://dhruba.name/2012/08/20/adding-a-jdk-and-sources-to-eclipse-on-a-mac/
http://emmanuelbernard.com/blog/2012/10/31/no-more-java-preferences-for-you/
Titanium doesn't recognize Android SDK on Windows
My problem is that Titanium Studio doesn't see my installed Android Platforms. I've tried removing and reinstalling everything via Titanium Studio but that won't make any difference.
Here's a screenshot of the SDK Manager: http://imgur.com/5F5oF
Titanium Studio Screenshot: http://imgur.com/w7j7n
Titanium Studio Details:
Titanium Studio, build: 1.0.8.201201262211
Build: jenkins-titanium-rcp-master-136 (origin/master)
Date: 26 January 2012, 22:14:21
OS Information:
Microsoft Windows 7 Ultimate
6.1.7601 Service Pack 1 Build 7601
Problem in Titanium Studio:
One or more pieces are missing from the Android SDK.
It may be that the Android SDK is already installed
and Titanium Studio cannot locate the directory, or
it may be that some additional components need to be installed.
Items required:
β’An Android SDK is missing. Titanium requires Android platforms 2.1.* and 2.2.*
We just spent a couple days wrestling with this problem. The issue is with the latest version of the mobile sdk that you've installed. Titanium Studio actually uses the following script to validate the Android SDK path in the configuration window:
MAC path looks like this:
/Library/Application Support/Titanium/mobilesdk/osx/sdk_version_number_here/android/avd.py
Based on your post, your path is probably something like:
C:\Users\Dean\AppData\Roaming\Titanium\mobilesdk\win32\sdk_version_number_here\android\avd.py
If you browse to the folder and look for that script, it's probably missing. We just deleted that version of the sdk (for us it was 2.0.1.GA2). Then went to Help -> Check for Updates to reinstall the latest version.
Can you try installing all the api levels. SDK level 10-15.
Hopefully that would help. I am also running Titanium on the same version of windows, and it works fine.
This looks crazy, but you need to install sdk 7 and 8, with the google APIs. I think that they have code nested to these SDK. Check twice that you accept the licence with Google API.
Here is the complete guide of installing Titanium with Android.
I broke my head for 2 days on the very same problem, and the solution is quite simple:
Titanium 3.2 and above does not work with android sdk in Windows.
Downgrade to 3.1.3 and everything will be just fine
https://wiki.appcelerator.org/display/guides2/Reverting+to+a+Previous+Version