user1455790
user1455790

Reputation: 11

Runtime exception when compiling project

When compiling my Nativescript project this error occurs.

Nativescript: 5.4.2

Exception in thread "main" java.lang.RuntimeException: Class not found android.support.v7.widget.Toolbar.OnMenuItemClickListener

How to solve it, any help is appreciated. Thanks in advance.

Upvotes: 0

Views: 1864

Answers (2)

Denis Seliverstov
Denis Seliverstov

Reputation: 1

I updated the Nativescript version from 5.4.2 to 6.1.2 and it fixed so many problems. I hope this may help you too.

Upvotes: 0

ZenRadLad
ZenRadLad

Reputation: 82

You need to migrate your application to AndroidX : Support for AndroidX in NativeScript

This tool makes the migration "painless" : AndroidX Migration tool

Upvotes: 1

Related Questions