8713

Is it safe to ignore these proguard notes for kotlin?

Question:

I don't understand why I'm getting these notes from proguard and if I've to do anything to address them.

<pre class="lang-none prettyprint-override">Note: kotlin.internal.PlatformImplementationsKt: can't find dynamically referenced class kotlin.internal.jdk8.JDK8PlatformImplementations Note: kotlin.internal.PlatformImplementationsKt: can't find dynamically referenced class kotlin.internal.JRE8PlatformImplementations Note: kotlin.internal.PlatformImplementationsKt: can't find dynamically referenced class kotlin.internal.JRE7PlatformImplementations Note: kotlin.jvm.internal.Reflection: can't find dynamically referenced class kotlin.reflect.jvm.internal.ReflectionFactoryImpl

Three of them are for kotlin.internal.PlatformImplementationKt and one for kotlin.jvm.internal.Reflection

<h2>My setup</h2> <pre class="lang-none prettyprint-override">kotlin: 1.2.71 Android Studio / gradle plugin: 3.2.0 gradle: 4.10.2

Answer1:

Yes it is safe, you should add those rules to your proguard-rules.pro configuration

# Kotlin -keep class kotlin.Metadata { *; } -dontnote kotlin.internal.PlatformImplementationsKt -dontnote kotlin.reflect.jvm.internal.**

Recommend

  • Create Mediation Exception In WS02 API Manager
  • Robot.mouseMove(1000,1000) moves mouse to random locations on screen… why?
  • Populating a List with a contiguous range of shorts
  • sonarqube typescript plugin: “You must install a plugin that supports the language”
  • Passing the path to a Gradle dependency to the Java compiler
  • Resize element width on window resize jquery
  • cast stl::vector containing pointers to stl::vector containing constant pointers
  • How to solve “The hierarchy of the type is inconsistent” error in Java Eclipse?
  • How do I know what reference to include to import a specific .NET namespace?
  • Google Player Game Service Error: Can't build the sample game
  • Bypass multiple inheritance in Java
  • saving file generated by TCPDF
  • WPF Visiblity Binding to Boolean Expression with multiple Variables
  • How does document.ready work with angular element directives?
  • How to revert to previous XCode version?
  • how to find common suffix in java by using method
  • Problems compiling files using JOGL
  • Webgrid not refreshing after delete MVC
  • QLPreviewController hide print button in ios6
  • Swing - Get new component under mouseReleased
  • Refering to the class itself from within a class mehod in Objective C
  • Java: can you cast Class into a specific interface?
  • FileReader+canvas image loading problem
  • Using jQuery closest() method with class selector
  • Insert into database using onclick function
  • Can I display google adwords (AdView) in javafx on android
  • Align navbar back button on right side
  • How to add date and time under each post in guestbook in google app engine
  • How to set/get protobuf's extension field in Go?
  • DirectX11 ClearRenderTargetViewback with transparent buffer?
  • Validaiting emails with Net.Mail MailAddress
  • sending/ receiving email in Java
  • Web-crawler for facebook in python
  • Akka Routing: Reply's send to router ends up as dead letters
  • Cannot Parse HTML Data Using Android / JSOUP
  • Error creating VM instance in Google Compute Engine
  • Java static initializers and reflection
  • unknown Exception android
  • Observable and ngFor in Angular 2
  • Unable to use reactive element in my shiny app