Kotlin android exception FLAG_ACTIVITY_NEW_TASK

Problem statement

Getting the following exception using kotlin:

“Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want?”

Solution

The solution to the error is discussed on the following GitHub issue:

More information about setting up Kotlin with Auth0, below:

2 Likes