I updated my Android Studio to the following version:
And started to get the following error:
The APK failed to install. Error: INSTALL_FAILED_NO_MATCHING_ABIS: INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries, res=-113
while trying to install ARM APK on X86_64 emulator.
I am not sure what version I had before, but ARM APK installed successfully on my X86_64 emulator with that version on this emulator:
Related
I am trying to install the intel haxm but I see this error : Unable to install IntelĀ® HAXM
HAXM can only be installed on Windows or Mac.
Please file a bug against Android Studio.
I am trying to set the android studio emulator in visual studio for react native. But i cant set install first intel
After too much Google and research I found to install HAXM from external other then Android Studio Use browser and go the below URl Dowload the setup file of HAXm and run the installation
https://github.com/intel/haxm/releases
I am building my ionic app in ubuntu 20.04, I installed android studio, added the required build tools, and also installed ionic and cordova. But when I attempt to build my app using the command below
ionic cordova build android
I get the following error
Could not find an installed version of Gradle either in Android Studio,
or on your system to install the gradle wrapper. Please include gradle
in your path, or install Android Studio
I check the installed version of gradle using gradle -v and I get the following result
------------------------------------------------------------
Gradle 7.0
------------------------------------------------------------
Build time: 2021-04-09 22:27:31 UTC
Revision: d5661e3f0e07a8caff705f1badf79fb5df8022c4
Kotlin: 1.4.31
Groovy: 3.0.7
Ant: Apache Ant(TM) version 1.10.9 compiled on September 27 2020
JVM: 1.8.0_282 (Private Build 25.282-b08)
OS: Linux 5.8.0-50-generic amd64
When I also check for the path using whereis gradle, I get the following result
gradle: /opt/gradle/gradle-7.0/bin/gradle.bat /opt/gradle/gradle-7.0/bin/gradle
When I run ionic info I get the result below
Ionic:
Ionic CLI : 6.13.1 (/usr/local/lib/node_modules/#ionic/cli)
Ionic Framework : #ionic/angular 5.3.2
#angular-devkit/build-angular : 0.1000.8
#angular-devkit/schematics : 10.0.8
#angular/cli : 10.0.8
#ionic/angular-toolkit : 2.3.3
Capacitor:
Capacitor CLI : 2.4.1
#capacitor/core : 2.4.1
Cordova:
Cordova CLI : 10.0.0
Cordova Platforms : android 8.1.0
Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.2.1, (and 20 other plugins)
Utility:
cordova-res : 0.15.3
native-run : not installed
System:
Android SDK Tools : 26.1.1 (/home/evans/Android/Sdk)
NodeJS : v10.19.0 (/usr/bin/node)
npm : 7.11.1
OS : Linux 5.8
What could be the problem?
Newish to Mac and having installed Android Studio it doesn't seem to have installed the Android SDK.
Any search for installing Android SDK seems to just refer me to install Android Studio again which I've tried with no success.
Install via brew which will install to /usr/local/opt/android-sdk
GoTo: Android Studio > Configure > SDK Manager.
Then update the location of the SDK within Android Studio as shown below.
Hello to all who are interesting in the issue,
I feel confused about gradle version in Android studio.
I am using the Android Studio 2.2.2. In the project build.gradle. I have classpath 'com.android.tools.build:gradle:2.2.2 which makes me believing the Android studio is using gradle 2.2.2.
In the gradle-wrapper.properties, It has https\://services.gradle.org/distributions/gradle-2.14.1-all.zip. So it means the gradlew build scripts requires 2.14.
When I tried to list tasks in the project, I used the terminal gradle tasks, I had following error:
java.lang.UnsupportedClassVersionError: com/android/build/gradle/LibraryPlugin : Unsupported major.minor version 52.0
And when I run gradlew -v I found the gradle version is 2.10. It could be me, I manually install the gradle by using apt-get install gradle. The default version might be 2.10.
My question is, which version gradle the android studio is using and how can I update the gradle to 'correct' version so I could list the tasks in the android project?
Edit 1:
I tried to update gradle to 2.14. By using
sudo apt-cache search gradle
sudo add-apt-repository ppa:cwchien/gradle
sudo apt-get update
sudo apt-get install gradle-2.14
I also tried to upgrade the gradle to version 2.14.1, but still having the same error.
Thanks for your help
Rong
A solution of solving the version 52.0 issue One suggested solution (with the similar situation I am having) solved the problem by decrease the gradle version to 2.10, I really do not want to do that, since I wish to use the update-to-date version that android studio is using.
As to the solution solved that issue: I am already having the Android 6.0 API 23 installed in the Android studio. The Android SDK 6.0 does not fix the problem in my case.
environment:
Android studio 2.2.2
Java sdk: 1.7
OS: Ubuntu 16.04 LTS
Got it work Thanks.
I installed both java 1.7 and 1.8 and I was using 1.7 in the terminal by using sudo update-alternatives --config javac. By some reason, I believe the android uses java 1.8. I changed update-alternatives option to java 1.8. The command 'gradlew tasks' starting to work as expected.
yes, but update $JAVA_HOME$ also accordingly.
I tried to get Genymotion running through Android Studio with VirtualBox installed through homebrew Cask. When trying to launch Genymotion through Android Studio using the Genymotion Device Manager button in the toolbar, I get the error Genymotion: Initialize Engine: failed in the event log, which seems to be the error related to when VirtualBox isn't installed.
Running Genymotion on its own outside of Android Studio works perfectly fine.
I was able to fix this by uninstalling VirtualBox from Cask and reinstalling with the .dmg provided by VirtualBox themselves. That's fine for me right now, but I am wondering how one would get a Cask-installed VirtualBox linked up to Android Studio.
Make sure you have installed Homebrew.
brew cask install virtualbox
brew cask install genymotion