Start a new topic

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

Hello,



We are trying to use libwikitudePlugins.so C++ plugin and we get this error when activity is starting. Did you already encounter such error ?


I/art: Rejecting re-init on previously-failed class java.lang.Class<Mk>: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/webkit/TracingController;
        at java.lang.Class java.lang.Class.classForName!(java.lang.String, boolean, java.lang.ClassLoader) (Class.java:-2)
        at java.lang.Class java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader) (Class.java:400)
        at java.lang.Class android.webkit.WebViewFactory.getProviderClass() (WebViewFactory.java:349)
        at android.webkit.WebViewFactoryProvider android.webkit.WebViewFactory.getProvider() (WebViewFactory.java:194)
        at android.webkit.WebViewFactoryProvider android.webkit.WebView.getFactory() (WebView.java:2325)
        at void android.webkit.WebView.ensureProviderCreated() (WebView.java:2320)
        at void android.webkit.WebView.setOverScrollMode(int) (WebView.java:2379)
        at void android.view.View.<init>(android.content.Context) (View.java:4331)
        at void android.view.View.<init>(android.content.Context, android.util.AttributeSet, int, int) (View.java:4473)
        at void android.view.ViewGroup.<init>(android.content.Context, android.util.AttributeSet, int, int) (ViewGroup.java:579)
        at void android.widget.AbsoluteLayout.<init>(android.content.Context, android.util.AttributeSet, int, int) (AbsoluteLayout.java:55)
        at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet, int, int, java.util.Map, boolean) (WebView.java:627)
        at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet, int, int) (WebView.java:572)
        at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet, int) (WebView.java:555)
        at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet) (WebView.java:542)
        at void android.webkit.WebView.<init>(android.content.Context) (WebView.java:532)
        at void com.wikitude.architect.ArchitectWebView.<init>(android.content.Context, com.wikitude.architect.ArchitectView, java.lang.String) (SourceFile:127)
        at void com.wikitude.architect.ArchitectView.onCreate(com.wikitude.architect.ArchitectStartupConfiguration) (SourceFile:445)
        at void com.nikoarap.artest.ARActivity.onCreate(android.os.Bundle) (ARActivity.java:75)



 Hello Nicola,


Thanks for your feedback.


I took the unchanged SDK sample app and it's not working on my device.

My device is a Samsung Galaxy A5 (2016), running on Androind 7.0.


Regards


Raphael

Hi Raphael,


Just to confirm: you took the unchanged SDK sample app and it's not working on your device or did you change something in the sample app? Could you please provide us with the information on the device you're using (device model + OS).


Thx and greetings

Nicola

 Hello,


Thanks for your rapid feedback.


Please find below the details you asked.


- Version of wikitude: 8.9.0 JS API for Android -- no extensions
- Sample code we used: marker_tracking  directly from the SDK that we downloaded.

The sample app marker_tracking  is not working on our device and also the issue is happening in our own app. We took marker_tracking app and tried to make it markerless (adding a positionable 3d object in the center of the screen without the use of markers)

- Please find attach our build.gradle file and the cmakelists.txt, may be the issue is coming from those files...

The error is triggered when the this.architectView.onCreate( config ); method of our Activity is called.

public class ARActivity extends AppCompatActivity implements GoogleApiClient.ConnectionCallbacks, GoogleApiClient.OnConnectionFailedListener,
com.google.android.gms.location.LocationListener {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_ar);

/** Initializing the AR screen via the phone's camera. */
this.architectView = this.findViewById( R.id.architectView );
final ArchitectStartupConfiguration config = new ArchitectStartupConfiguration();
config.setLicenseKey(license);
this.architectView.onCreate( config );
...
...
...
-----------------------------------------------------------------
Thanks for your help,
Regards
Raphael
(758 Bytes)
txt
(2.88 KB)

Hi,


Please provide us with the following details:

  • Which version of the SDK are you using?
  • Are you working with the JS API or the Native API?
  • Are you using any of our Extensions (Cordova, Xamarin, Unity)? If yes, which version are you using?
  • Is this happening with the sample app or in your own app? If it happens with your own app, does the sample app work on your device?
  • Could you send exact steps to reproduce the issue?


Thx and greetings

Nicola

Login or Signup to post a comment