Monday, 19 March 2018

Androis Studio errors and solutions


Here are some list of Android Studio errors, I faced when trying to use Android Studio. This is not limited only to the listed below, it will be growing, when I get new one.
  1. Emulator: [1116]:ERROR:android/android-emu/android/qt/qt_setup.cpp:28:Qt library not found at C:\Users\user1\AppData\Local\Android\Sdk\emulator\lib64\qt\lib
  2. > Manifest merger failed: uses-sdkminSdkVersion 9 cannot be smaller than version 14 declared in library [com.android.support.apcompat-v7:26.0.0-alpha1]  Android Studio
  3. Error Loading Project: Cannot load 3 facets Details... Android Studio.
  4. Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.android.support:appcompat-v7:26.1.0.
  5. Google Map fragment is blanked with Google logo and update google play services. 
  6. >Please fix the version conflict either by updating the version of the google-services plugins (information about the latest version is available at http://bintray.com/android/android-tools//com.google.gms.google-services/) or updating the version of com.google.android.gms to 12.0.1
  7. Error:Execution failed for task ':app:preDebugAndroidTestBuild'. > Conflict with dependency 'com.android.support:support-annotations' in project ':app'. Resolved versions for app (26.1.0) and test app (27.1.1) differ. 
  8. Emulator: emulator: ERROR: x86 emulation currently require hardware acceleration!
  9. Error: Cannot fit requested classes in a single dex file (# methods: 87573 > 65536)
  10. KVM is required to run this AVD. /dev/kvm/ device:permission denied. Grant current user  access to /dvm/kvm

Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.android.support:appcompat-v7:26.1.0.

This kind of error is Gradle related error. If there is a problem in Gradle or it is working in offline mode, you get error like -


To resolve this kind of error either update your Gradle or put your Gradle in online mode.

To do so, go to -

File ----> Settings ------> Build,Execution, Deployment ------> Gradle ------> and uncheck the Offline mode

Note :- make sure you are connected to internet, because it is updated from there.


Then click Apply and Ok and wait till Gradle is being updated.



Monday, 5 March 2018

Emulator: [1116]:ERROR:android/android-emu/android/qt/qt_setup.cpp:28:Qt library not found at C:\Users\user1\AppData\Local\Android\Sdk\emulator\lib64\qt\lib

As a beginner of using Android Studio, it is very hard to rectify the Android Studio error. As I also a beginner of Android Studio and what I face during my experience, I just share it through my blog. Here I am sharing my experience regarding emulator error. See the error in screen shot -



So, why this problem occurs ? Answer is that, your SDK does not have emulator or partially installed.
To install emulator go to -

Tools -----> SDK Manager -------> Android SDK

 and tick the Android Emulator then Apply and Ok

Note :- make sure that you are connected to Internet.


Confirm it by clicking OK.


Then it will download the emulator from Google Android.



Click Finish.

Restart Android Studio.





Change image source dynamically on hyperlink

 Changing image source dynamically using JQuery. Here in this example I have created there hyperlink and stored all images in the same folde...