How do I fix this error on running the Android Studio setup on Mac OSX10.7.5
"Unable to run mksdcard SDK tool.
One common reason for this failure is missing required libraries
Please fix the underlying issue and retry."
The mksdcard utility distributed with recent versions of the Android SDK was compiled in a way that it won't run on OS X versions older than 10.8. You can replace your mksdcard with an older copy of the utility that's known to work on OS X 10.7.5, such as the one in http://dl-ssl.google.com/android/repository/tools_r22.6.2-macosx.zip.
Credit where its due: This solution is from IAMSME's answer to a similar question, which I found via googling "illegal instruction 4" after I got that error message when a hunch led me to test mksdcard on the command line.
Try running a Package Manager (like apt-get or brew, you will likely need brew since you are on Mac OS X) for downloading some additional packages Android Studio couldn't install.
sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6 (Command line for Ubuntu OS)
Apart from setup Android Studio should check whether is capable to run 32-bit components like aapt or adb. Hopefully it will serve you as a work around.
BTW this is a Google bug currently being addressed (not sure what Titanium Studio has to do here as quoted by Mark previously).
i.e. https://code.google.com/p/android/issues/detail?id=152213
The only solution that worked for me was to drag titanium studio into the trash and reinstall it. I spend hours trying to work this out, but couldn't. After a reinstall it just worked.
I'd recommend using an older version of Android Studio until this gets sorted out by Google.
Related
After extensive google-ing and searching SO, I was not able to sufficiently find a solution to my problem.
The issue:
My project currently has Databinding v2 enabled and in my XML I do have 2 way data binding for view model properties.
Android Studio (v3.5.3) is able to compile the project fine and doesn't have any errors
Using the command line tool ./gradlew assemble<Release_type> would result in
javax/xml/bind/JAXBException
The solution:
There were some hints on Google and SO regarding a change made from Java8 -> Java11 regarding this library. I'm not entirely sure what that change was but Java11 doesn't include whatever library that is needed to compile the app. Upon further inspection, I realized I was running OpenJDK 11 and not OpenJDK 8. According to various sources, the solution to this problem was to install OpenJDK 8.
Steps to success:
Uninstall OpenJDK 11 or greater
Run the following command
brew tap AdoptOpenJDK/openjdk
brew cask install adoptopenjdk8
Now running ./gradlew assemble<release_type> should work as expected.
What this solves
fastlane not being able to build
gradlew not able to build
Conclusion
Further google searching led me to a couple of articles related to OpenJDK 11. Apparently, Android Studio doesn't support OpenJDK 11 yet but Android Studio 4.x will.
- reference to SO post
I know this isn't an "actual" question but I leave this here in hopes that anyone else super frustrated (like myself) finds this potential solution useful and hopefully Google indexes this article :)
Please see above for detailed Solution
TLDR
Steps to success:
Uninstall OpenJDK 11 or greater
Run the following command
brew tap AdoptOpenJDK/openjdk
brew cask install adoptopenjdk8
Now running ./gradlew assemble should work as expected.
I'm trying to run a blank app of ionic 4 on my android 9 device. Already followed each step on the website and running it on browser is okay.
When I run it on my device here is what i get:
Error when running
It says I dont have gradle and android studio but here is my environment:
android sdk list,my /etc/environment,and my npm, ionic, gradle and java versions
Am I missing something guys?
This error occurs when gradle is not properly installed. I have experienced this before. try installing gradle on your system.
For some reason the ionic project does not locate the gradle, to verify that this is the case, try opening the project on android studio and you will get the warning that no gradle wrapper was found.
IDK if some of you people have the same problem, but it's because of the Gradle. Installed it the way the website said, tried both automatically with SDK manager and also the manual downloads. Still no. So I installed it using:
sudo add-apt-repository ppa:cwchien/gradle
sudo apt-get update
sudo apt-get install gradle
Then find location where it was installed then add to path. Now I can install the app on my device
Your question is not clear, are you facing error on local emulator or real mobile device?
it seems you are trying to run on local android emulator, can you please mention that where you are facing error?
Also, please do debug or production build with the help of ionic cordova build android command and try to run on your android device, generally android studio will pops up of gradle build update, which will help to generate faster sequential android build, and which needs gradle for it.
I download android open source project from Here
After downloaded, I used this command to clean UP etc...
$ make clobber
Then i got this problem
build/core/main.mk:42: ********************************************************************************
build/core/main.mk:43: * You are using version 4.1 of make.
build/core/main.mk:44: * Android can only be built by version 3.81.
build/core/main.mk:45: * see http://source.android.com/source/download.html
build/core/main.mk:46: ********************************************************************************
I got make 4.1 default from android open source project
I'm using ubuntu 18.04 LTS
Excepted solution
How to downgrade 4.1 to 3.81
I can't able to install 1.6 JDK
I know that hell of dependencies to build AOSP, I live on Arch Linux and working build may fail after a system update.
So now I'm using docker image with all deps preinstalled, without a need to upgrade system there, keeping my desktop Arch Linux independent.
Just some results after googling:
https://github.com/stucki/docker-lineageos (I used this one, but the next one may be a better choice)
https://github.com/jfloff/docker-lineageos
https://hub.docker.com/r/anthodingo/docker-lineageos/
Also you may be interested to know that there's a Linux distro dedicated to AOSP development: http://bbqlinux.org/
As in the requirement say you should use
Just download it from gnu.org. Here are the requirements for building AOSP
For your JDK you should run this:
sudo apt-get update
sudo apt-get install openjdk-8-jdk
Don't forget to uninstall everything JDK, Make before you install the new ones.
I'm using Eclipse 3.5.2 and when I followed the steps on this tutorial(http://developer.android.com/guide/developing/tools/adt.html). I got an error message during the last steps.
An error occurred while installing the
items session context
was:(profile=PlatformProfile,
phase=org.eclipse.equinox.internal.provisional.p2.engine.phases.Install,
operand=null --> [R]org.eclipse.cvs
1.0.400.v201002111343, action=org.eclipse.equinox.internal.p2.touchpoint.eclipse.actions.InstallBundleAction).
The artifact file for
osgi.bundle,org.eclipse.cvs,1.0.400.v201002111343
was not found.was not found.
would be grateful if anyone can help me out :)
Thanks.
P.S. I'm running Ubuntu Lucid Lynx with kernel 2.6.32-24-generic on x86_64. I have the ia32libs installed as well.
Did you install Eclipse from the Ubuntu Software Center ? Apparently there are several packages missing from that install.
You should be able to fix it with an sudo apt-get install eclipse-plugin-cvs eclipse-jdt eclipse-pde
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.