java.lang.RuntimeException: Unable to start activity ComponentInfo{com. sample.app/com.google.android.gms.ads.AdActivity}: android.util. AndroidRuntimeException: requestFeature() must be called before adding content at android.app.ActivityThread.performLaunchActivity(ActivityThread. java:2658) at android.app.ActivityThread.handleLaunchActivity(ActivityThread .java:2723) at android.app.ActivityThread.access$900(ActivityThread.java:172 ) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1422)

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
via Stack Overflow by CommonsWare

Try loading the text file into a WebView, then printing the contents of the WebView.

Solutions on the web

via Google Groups by Orlando Yanson Jr., 1 year ago
Unable to start activity ComponentInfo{com. sample.app/com.google.android.gms.ads.AdActivity}: android.util. AndroidRuntimeException: requestFeature() must be called before adding content at android.app.ActivityThread.performLaunchActivity
via Stack Overflow by manpreet parmar
, 1 year ago
Unable to start activity ComponentInfo {com.youmasti.mp3test/com.youmasti.mp3test.MainActivity}: java.lang.NullPointerException: Attempt to get length of null array at android.app.ActivityThread.performLaunchActivity
via Stack Overflow by Rohit G
, 2 years ago
) at android.app.ActivityThread.handleSendResult(ActivityThread.java:3742) at android.app.ActivityThread.-wrap16(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1393)
via Stack Overflow by Unknown author, 2 years ago
android.app.ActivityThread.access$1300(ActivityThread.java:149) 05-15 02:10:01.199: E/AndroidRuntime(17169): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1373)
via Stack Overflow by rajshree
, 2 years ago
Unable to start activity ComponentInfo{com.example.target_wallpaper77/com.example.target_wallpaper77.Starter_info}: java.lang.NumberFormatException: Invalid float: "2:00 h" 11-11 04:54:58.187: E/AndroidRuntime(3122): at
via Stack Overflow by Ben
, 2 years ago
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2325) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2390) at android.app.ActivityThread.access$800(ActivityThread.java:151) 08-06 11:07:28.524: E/AndroidRuntime(1927): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)
java.lang.RuntimeException: Unable to start activity ComponentInfo{com. sample.app/com.google.android.gms.ads.AdActivity}: android.util. AndroidRuntimeException: requestFeature() must be called before adding content at android.app.ActivityThread.performLaunchActivity(ActivityThread. java:2658) at android.app.ActivityThread.handleLaunchActivity(ActivityThread .java:2723) at android.app.ActivityThread.access$900(ActivityThread.java:172 ) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1422)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:145)
at android.app.ActivityThread.main(ActivityThread.java:5832)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.