Solved: No value has been specified for property ‘lintClassPath’

While I was developing small code for checking device information, after I edited our sample code downloaded from github and tried to compile app from command line as shown below, I encountered an error as [bash] $ ./gradlew clean build > Task :app:lint FAILED FAILURE: Build failed with an exception. * What went wrong: A … Read more

Solved: java.lang.ClassCastException: android.app.ContextImpl cannot be cast to android.app.Activity

If you are working on Android application or AAR Library, you will be using applications context frequently for accessing android system API’s.While using those API’s which are dependent on Context, there are chances you may see an error like as below, System.err: java.lang.ClassCastException: android.app.ContextImpl cannot be cast to android.app.Activity Solution : When we encountered this … Read more

Solved Error: Must be one of: RecyclerView.HORIZONTAL, RecyclerView.VERTICAL [WrongConstant]

When we were compiling our app source code with “./gradlew clean build” we got following error, Error: Must be one of: RecyclerView.HORIZONTAL, RecyclerView.VERTICAL [WrongConstant] layoutMngr.orientation = androidx.recyclerview.widget.LinearLayoutManager.VERTICAL Solution to this compilation error is, open your source code and change LinearLayoutManager.VERTICAL to RecyclerView.VERTICAL So, the final source code should look like, layoutMngr.orientation = androidx.recyclerview.widget.RecyclerView.VERTICAL

Solved : fatal: refusing to merge unrelated histories

As we seen in our previous post, “Pushing your first git repository / project to Github” we tried to push our local git to already existing git at github. While doing this, we had two different independent repositories with separate contents committed at local git and git at github. Now, when we tried to pull … Read more

How to resolve “sh: 0: getcwd() failed: No such file or directory”

Today I was working with git and for that I had created a “workspace” directory which contained some source files. During this activity I opened another terminal and deleted the workspace directory from second terminal, where as the first terminal, I forgot that, I was still inside that deleted “workspace” directory. When I tried to … Read more

What is m4 and How to Fix: “m4: command not found” error

If you have installed fresh Ubuntu on your development machine and tried to compile some opensource source code which uses “autoconf” for generating Makefile for compilation, its highly possible that you may see an error as below, [bash] /bin/bash: m4: command not found [/bash] what is m4 ? GNU ‘m4’ is an implementation of the … Read more