Saturday, August 03, 2019

Androidx Migration solved android.view.InflateException: Error inflating class androidx.constraintlayout.widget.constraintLayout

Encountered this error when starting a new project in android,

FATAL EXCEPTION: main
    Process: com.kameshapps.panchangamdaily, PID: 11397
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.k......../com............MainActivity}: android.view.InflateException: Binary XML file line #2: Binary XML file line #2: Error inflating class androidx.constraintlayout.widget.constraintLayout
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2646)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2707)
        at android.app.ActivityThread.-wrap12(ActivityThread.java)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1460)


After browsing a few posts, the following steps helped resolve. Hope it helps someone

1. Add mavencentral() to repositories in build.gradle(project), like so

repositories {
    google()
    jcenter()
    mavenCentral()
}

2 Following changes in the layout.xml (note the capitalization of ConstraintLayout)..

From, <androidx.constraintlayout.constraintLayout> 

to, <androidx.constraintlayout.widget.ConstraintLayout

3. Add the following 

implementation "androidx.constraintlayout:constraintlayout:1.1.3" build.gradle ( app)


Hope it helps someone

Tuesday, December 26, 2006

27th December, 2006


Identify the child in this picture. Hint: He grew up to become a very famous figure. Even got himself on the cover of times magazine.

Friday, December 22, 2006

Thursday, December 21, 2006

21st December, 2006



Here is a Google Trend. Identify what / who was searched to give this trend.

Tuesday, November 21, 2006

SMS Contests II

As i brought the topic of 'SMS contests' over lunch, there were mixed reactions from colleagues. Here are some of perspectives from them.

The SMS contests and their responses could be used to assess the popularity rating of a radio station and therefore could be used as a fund raising tool. The explanation here is that the more popular the channel, the easier it would be to woo investors.

A stream of Revenue. Each channel could potentially tie up with mobile service providers so that they earn a % of SMS revenue generated through these 'contests'.

If, "The simpler the contest, the greater the participation" maxim is applied, then the contest could be used as a tool to gain more people to tune into the channel.

Looks like, Whoever the winner be, the broadcaster would laugh his way to the bank, always!!.