Android WebView not finding TracingController
Asked Answered
T

3

29

I'm trying to write a simple app with a WebView, but when I create a WebView I get an error:

java.lang.NoClassDefFoundError: Failed resolution of: Landroid/webkit/TracingController;

I searched and found that TracingController is implemented from api level 28, but I only have 27.

How can I resolve this?

Tabloid answered 13/9, 2018 at 9:36 Comment(4)
I am experiencing this issue while running an ionic app. Has anyone found a solution?Athalee
any luck? I have the same problem.Dotty
I have the same issue..Kamakura
I think it has something to do with displaying ads, when I display ads I get this, when removing the ads this is gone.Kamakura
B
1

Might be late but helpful if someone has the same issue.I had same issue on my project and I figured out that issue is with the SDK version 28. - If you use the below sets of dependencies then you will not have this issue.

compileSdkVersion 27
buildToolsVersion '28.0.3'

minSdkVersion 16
targetSdkVersion 26

Also, I have included the dependencies used in my project. I have used MoPub SDK for Ads and Google AdMob & Facebook mediation adapters.

compile "com.android.support:appcompat-v7:27.1.1"
compile "com.android.support:design:27.1.1"
compile 'com.android.support.constraint:constraint-layout:1.1.3'
compile('com.crashlytics.sdk.android:crashlytics:2.6.5@aar') {
    transitive = true
}
compile 'com.android.support:multidex:1.0.3'
compile "com.google.firebase:firebase-core:16.0.1"
compile "com.google.firebase:firebase-ads:15.0.1"
compile "com.google.android.gms:play-services-analytics:15.0.0"
compile "com.google.firebase:firebase-config:15.0.0"
compile 'com.google.android.ads.consent:consent-library:1.0.6'

// Glide
compile 'com.github.bumptech.glide:glide:3.7.0'

/* Mopub SDK */
compile('com.mopub:mopub-sdk:5.3.0@aar') {
    transitive = true
}
compile 'com.mopub.mediation:admob:15.0.0.11'

compile 'com.mopub.mediation:facebookaudiencenetwork:5.0.0.0'
compile 'com.facebook.android:audience-network-sdk:5.0.0'
Bairn answered 21/11, 2018 at 18:20 Comment(2)
is anybody resolved this issue please let me know i have same problem from past two daysAalesund
Try restarting your emulatorDaveta
S
0

same issue here, only appearing on Android 8 in ionic after building with --release. The app shows the splash screen and then is stuck in white screen

Salcido answered 11/10, 2018 at 16:15 Comment(2)
Look at my last comment above, could you perhaps confirm this?Kamakura
I have no ads and this still pops up on all activities where I use a webview.Dotty
C
0

As the OP wrote, "TracingController is implemented from api level 28, but I only have 27."

My app's build.gradle has:

android {
    compileSdk 34

    defaultConfig {
        applicationId "com.example.myapp"
        minSdkVersion 26
        targetSdkVersion 34
    }

So, on a Pixel 8a running Android 14, I do not see this information message.

But on a Nexus 6P running Android 8.0, I see this information message (and associated stack trace).

I conclude from this that this is a benign message on devices running levels lower than 28.

Catalonia answered 30/7 at 7:46 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.