Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when an advertising Activity starts #227

Open
aartikov opened this issue Jun 30, 2021 · 0 comments
Open

Crash when an advertising Activity starts #227

aartikov opened this issue Jun 30, 2021 · 0 comments

Comments

@aartikov
Copy link

Hyperion causes crash on Android 6.0 when com.google.android.gms.ads.AdActivity is started.
The crashlog is:

    java.lang.RuntimeException: Unable to start activity ComponentInfo{***/com.google.android.gms.ads.AdActivity}: 
    android.util.AndroidRuntimeException: requestFeature() must be called before adding content
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
        at android.app.ActivityThread.-wrap11(ActivityThread.java)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)
        at android.os.Handler.dispatchMessage(Handler.java:102)
        at android.os.Looper.loop(Looper.java:148)
        at android.app.ActivityThread.main(ActivityThread.java:5417)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

So the bug is related to #144

Please, add com.google.android.gms.ads.AdActivity to ignore list as it is done for leakcanary.internal.activity.LeakActivity, or make the ignore list configurable. Annotation @HyperionIgnore doesn't help because AdActivity is a third party class.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant