How to resolve : getaddrinfo: new-hostname No address associated with hostname

Recently, we got the error “getaddrinfo: new-hostname No address associated with hostname” while working with some commands, This error means, we are missing somewhere an assignment of IP and its related hostname. You can use command “hostname”, To get, the hostname of your machine. $ hostname new-hostname Now, to assign an IP with this hostname … Read more

How to solve : WARNING: QA Issue: network-manager-applet rdepends on modemmanager, but it isn’t a build dependency? [build-deps]

Following are the errors which you may get while compiling bitbake and its solutions, Error :  WARNING: QA Issue: network-manager-applet rdepends on modemmanager, but it isn’t a build dependency? [build-deps] Solution : Open the network-manager-applet recipe and add RDEPENDS on modemmanager, as RDEPENDS_${PN} =+ “modemmanager” Note: This error we observed for network-manager-applet which we were … Read more

Solved : java.lang.OutOfMemoryError: Java heap space

When I was trying to compile latest repo sync Android source code ( Android 10 ), and tried to compile demo application, I got an error as, [bash] Exception in thread "main" java.lang.OutOfMemoryError: Java heap space at java.base/java.util.AbstractList.subList(AbstractList.java:500) at com.intellij.psi.stubs.StubList.getChildrenStubs(StubList.java:143) at com.intellij.psi.stubs.MaterialStubList$1.visitStub(StubList.java:341) at com.intellij.psi.stubs.MaterialStubList$1.visitStub(StubList.java:345) at com.intellij.psi.stubs.MaterialStubList$1.visitStub(StubList.java:345) at com.intellij.psi.stubs.MaterialStubList$1.visitStub(StubList.java:345) at com.intellij.psi.stubs.MaterialStubList$1.visitStub(StubList.java:345) at com.intellij.psi.stubs.MaterialStubList.createOptimizedCopy(StubList.java:348) at com.intellij.psi.stubs.MaterialStubList.finalizeLoadingStage(StubList.java:325) at … Read more

Solved: systemd[1]: Failed to start The Apache HTTP Server.

If you are trying to install apache2 webserver as we mentioned in our another post “How to install Apache webserver on Ubuntu ?” there are chances that you may see an error like “systemd[1]: Failed to start The Apache HTTP Server.” in a red color on command line as below, Job for apache2.service failed because … Read more

Solved: ImportError: No module named requests

When we tried to run a python script to check upnp information from https://github.com/lynxbee/upnp_info/blob/master/upnp_info.py on Ubuntu, we got following error, $ python upnp_info.py [bash] Traceback (most recent call last): File "upnp_info.py", line 7, in <module> import requests ImportError: No module named requests [/bash] Solution : On Ubuntu this error can be resolve by installing as, … Read more

Solved error : android.view.InflateException: Binary XML file line #16: Error inflating class androidx.constraintlayout.ConstraintLayout

Recently when we migrated one of our android application to AndroidX, using android studio’s option from “Refactor -> Migrate to AndroidX” , it was expected that everything should work fine but during compilation it failed with following error, [bash] AndroidRuntime: Caused by: android.view.InflateException: Binary XML file line #16: Error inflating class androidx.constraintlayout.ConstraintLayout AndroidRuntime: Caused by: … Read more

Solved: System.out: android.os.NetworkOnMainThreadException

In Android application, if you are doing some network operations like download from some external website or share some data with someone etc, and if by unknowingly if we tries to do such network calls on any activities main thread, Android reports an “network on main thread” exception errors as below, System.out: android.os.NetworkOnMainThreadException System.out: at … Read more