Skip to content

Using Android KTX is causing NativeScript app to crash #1571

@NickIliev

Description

@NickIliev

Using the following:

implementation 'androidx.core:core-ktx:1.0.2'

Is causing errors of type

01-31 11:03:05.902 28366 28366 D AndroidRuntime: Shutting down VM
01-31 11:03:05.903 28366 28366 E AndroidRuntime: FATAL EXCEPTION: main
01-31 11:03:05.903 28366 28366 E AndroidRuntime: Process: org.nativescript.t1451671, PID: 28366
01-31 11:03:05.903 28366 28366 E AndroidRuntime: com.tns.NativeScriptException: Calling js method onViewAttachedToWindow failed
01-31 11:03:05.903 28366 28366 E AndroidRuntime: Error: java.lang.NoSuchMethodError: no static method "Landroid/animation/Animator;.addListener(Landroid/animation/Animator$AnimatorListener;)V"

Steps to reproduce:

  • Create a template app
  • Use the above Android KTX dependency in app.gradle
  • Build and run

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions