Avertissements concernant les problèmes Android
Supprimé les informations sur les sections locales non valides d'une méthode. Message {kind = WARNING, text = Supprimez les informations sur les locales non valides de 1 méthode., Sources = [Fichier source inconnu], nom de l'outil = Facultatif.of (D8)}
Les annotations InnerClass ne contiennent pas les annotations EnclosingMember correspondantes. Ces annotations InnerClass sont ignorées. Message {kind = WARNING, text = Les annotations textuelles InnerClass ne correspondent pas aux annotations EnclosingMember correspondantes. Ces annotations InnerClass sont ignorées., Sources = [fichier source inconnu], nom de l'outil = Facultatif.of (D8)}
org.w3c.dom.bootstrap.DOMImplementationRegistry
Est introuvable, il est requis pour les méthodes d'interface par défaut ou statiques, désugarant de void com.fasterxml.jackson.databind.ext.DOMSerializer.<init>()
Le type
org.w3c.dom.bootstrap.DOMImplementationRegistry
N'a pas été trouvé, il est requis pour les méthodes d'interface par défaut ou statiques sans désarchivage devoid com.fasterxml.jackson.databind.ext.DOMSerializer.<init>()
Message {kind = ATTENTION, text = Le typeorg.w3c.dom.bootstrap.DOMImplementationRegistry
N'a pas été trouvé, il est requis pour les méthodes d'interface par défaut ou statiques désactivées devoid com.fasterxml.jackson.databind.ext.DOMSerializer.<init>()
, sources = [/ Utilisateurs/deepanshusinha/git/OpenApp/OpenAppForce/app/build/intermediates/transforms/androidGradleClassShrinker/beta/debug/4/com/plusxxml /jackson/databind/ext/DOMSerializer.class], nom de l'outil = Facultatif.of (D8)}
Avertissements du compilateur Java
Attention: La règle `-keep public class * étend Java.lang.annotation.Annotation {
Pour Java), j'ai essayé de réparer mon fichier de proguard. Voici mon fichier de proguard. Faites-moi savoir si j'ai fait quelque chose de mal.
#Start Dto#
-keep public class co.openapp.app.data.model.* {
*;
}
#End Dto#
#OkHttp3, Okio, Retrofit
-dontwarn okhttp3.**
-dontwarn okio.**
-dontwarn javax.annotation.**
#Start Okhttp#
-dontwarn Java.nio.file.**
-dontwarn Java.lang.invoke.**
-dontwarn Java.lang.reflect.Method
#End Okhttp#
#Start Retrofit#
-dontwarn retrofit2.**
-keep class retrofit2.** { *; }
-keepattributes Signature
-keepattributes Exceptions
#End Retrofit#
#Start Jackson
-keepattributes *Annotation*,EnclosingMethod,Signature
-keepnames class com.fasterxml.jackson.** { *; }
-dontwarn com.fasterxml.jackson.databind.**
-keep class org.codehaus.** { *; }
-keepclassmembers public final enum
org.codehaus.jackson.annotate.JsonAutoDetect$Visibility {
public static final
org.codehaus.jackson.annotate.JsonAutoDetect$Visibility *; }
#End Jackson
#Start Crashlytics#
-keepattributes SourceFile,LineNumberTable
#End Crashlytics#
#dagger
-dontwarn com.google.errorprone.annotations.**
##---------------Begin: proguard configuration common for all Android apps ----------
-optimizationpasses 5
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-dontskipnonpubliclibraryclassmembers
-dontpreverify
-verbose
-dump class_files.txt
-printseeds seeds.txt
-printusage unused.txt
-printmapping mapping.txt
-optimizations
!code/simplification/arithmetic,
-allowaccessmodification
-keepattributes *Annotation*
-renamesourcefileattribute SourceFile
-keepattributes SourceFile,LineNumberTable
-repackageclasses ''
-keep public class * extends Android.app.Activity
-keep public class * extends Android.app.Application
-keep public class * extends Android.app.Service
-keep public class * extends Android.content.BroadcastReceiver
-keep public class * extends Android.content.ContentProvider
-keep public class * extends Android.app.backup.BackupAgentHelper
-keep public class * extends Android.preference.Preference
-keep public class com.Android.vending.licensing.ILicensingService
-dontnote com.Android.vending.licensing.ILicensingService
# Explicitly preserve all serialization members. The Serializable interface
# is only a marker interface, so it wouldn't save them.
-keepclassmembers class * implements Java.io.Serializable {
static final long serialVersionUID;
private static final Java.io.ObjectStreamField[] serialPersistentFields;
private void writeObject(Java.io.ObjectOutputStream);
private void readObject(Java.io.ObjectInputStream);
Java.lang.Object writeReplace();
Java.lang.Object readResolve();
}
# Preserve all native method names and the names of their classes.
-keepclasseswithmembernames class * {
native <methods>;
}
-keepclasseswithmembernames class * {
public <init>(Android.content.Context, Android.util.AttributeSet);
}
-keepclasseswithmembernames class * {
public <init>(Android.content.Context, Android.util.AttributeSet, int);
}
# Preserve static fields of inner classes of R classes that might be accessed
# through introspection.
-keepclassmembers class **.R$* {
public static <fields>;
}
# Preserve the special static methods that are required in all enumeration classes.
-keepclassmembers enum * {
public static **[] values();
public static ** valueOf(Java.lang.String);
}
-keep public class * {
public protected *;
}
-keep class * implements Android.os.Parcelable {
public static final Android.os.Parcelable$Creator *;
}
##---------------End: proguard configuration common for all Android apps ----------
#---------------Begin: proguard configuration for support library ----------
-keep class Android.support.v4.app.** { *; }
-keep interface Android.support.v4.app.** { *; }
-keep class com.actionbarsherlock.** { *; }
-keep interface com.actionbarsherlock.** { *; }
# The support library contains references to newer platform versions.
# Don't warn about those in case this app is linking against an older
# platform version. We know about them, and they are safe.
-dontwarn Android.support.**
-dontwarn com.google.ads.**
##---------------End: proguard configuration for Gson ----------
##---------------Begin: proguard configuration for Gson ----------
# Gson uses generic type information stored in a class file when working with fields. Proguard
# removes such information by default, so configure it to keep all of it.
-keepattributes Signature
# For using GSON @Expose annotation
-keepattributes *Annotation*
# Gson specific classes
-keep class Sun.misc.Unsafe { *; }
#-keep class com.google.gson.stream.** { *; }
# Application classes that will be serialized/deserialized over Gson
-keep class com.example.model.** { *; }
##---------------End: proguard configuration for Gson ----------
Pour votre information, cela semble être corrigé dans AGP 3.2 Canary 12: https://issuetracker.google.com/issues/72080964
Hit le même problème ...