This video shows the steps to quickly fix android.os.NetworkOnMainThreadException in your Android Studio Java code. The fix shown is more of a workaround. Ideal fix would be to run all the network related tasks in a separate thread using async methods. However, in this video it shows how one can…
Tag: error
Android Studio – Fix the WebView error “The webpage could not be loaded because: net::ERR_CACHE_MISS”
This video shows how to fix the error “The webpage could not be loaded because: net::ERR_CACHE_MISS” in WebView. It shows how simply adding the below INTERNET permission in the manifest file solves the issue: I hope you like this video. For any questions, suggestions or appreciation please contact us at:…
Android Studio – Fix the error “Could not resolve com.android.tools.build:gradle:7.4.0”?
In this video it shows the steps to fix the gradle error in Android studio. Actual issue is with Java version mismatch as explained in the below line of error: To resolve this issue, it changes the Gradle JDK for build in the settings of Android Studio. I hope you…
Resolve [UnexpectedTagNameException: Element should have been “select” but was “div”] in Selenium?
In this video will see how to resolve selenium error – Exception in thread “main” org.openqa.selenium. UnexpectedTagNameException: Element should have been “select” but was “div”. I hope you like this video. For any questions, suggestions or appreciation please contact us at: https://programmerworld.co/contact/ or email at: programmerworld1990@gmail.com Code: Error screenshot:
How to check locators directly in the browser without any extra add-on/ plugin for Selenium?
Selenium: In this video we will see how to check locators are correct or not directly in the browser before using it in the code. This will really save the time and effort. I hope you like this video. For any questions, suggestions or appreciation please contact us at: https://programmerworld.co/contact/…
What to do when Flutter App stuck at “Running Gradle task ‘assembleDebug’… ” in Android Studio?
This situation may happen during the first Flutter App run. It is because gradle file may not be correct and needs to be cleaned and rebuild. Simply run below command in your Android Studio Terminal at $Project\Android folder: ./gradlew clean build Please note, in the above Android Gradle plugin requires…
How to fix “No emulators are currently running. To launch an emulator, use the Device Manager or run your app while targeting a virtual device.” error in Android Studio?
The below error appears when the previous process of the emulator is not closed properly in the system: No emulators are currently running. To launch an emulator, use the Device Manager or run your app while targeting a virtual device. To solve the problem, one has to kill the below…
How to solve “Build was configured to prefer settings repositories over project repositories but repository ‘Google’ was added by build file ‘build.gradle'” error in Android App development?
On adding the google or maven repositories for all projects in the gradle file can given error. Adding below: allprojects { repositories { google() mavenCentral() } Gives below error: Solution: Goto Settings.gradle file: And add the lines as below if not added: google() and mavenCentral() repositories added:
How to solve Oracle database ERROR: ORA-12541: TNS:no listener?
Executing sqlplus to connect to local database gives below error when the respective service is not running. To solve this issue, follow below steps: 1. Goto Services.msc 2. Start the below services: 3. Then try again the sqlplus command. Enter the user-name and password if prompted.
How to enable “Allow all the time” location permission option for your Android App?
This video shows how one can use the ACCESS_BACKGROUND_LOCATION permission option in the App’s manifest file to enable the “Allow all the time” location service for your App. This privilege is required if your App runs in background and still needs location services for its functionality. Android OS, however, is…