Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/qt/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android studio 在android Studio中显示模糊android库(AAR)的API源_Android Studio_Proguard_Android Library_Aar_Android R8 - Fatal编程技术网

Android studio 在android Studio中显示模糊android库(AAR)的API源

Android studio 在android Studio中显示模糊android库(AAR)的API源,android-studio,proguard,android-library,aar,android-r8,Android Studio,Proguard,Android Library,Aar,Android R8,我目前正在从事一个android库项目,其软件包层次结构如下: com.example |_______ api (contains the public interface of the library) |_______ internal (contains the remaining internal classes) 不幸的是,我需要混淆内部类。这将生成以下proguard-rules.pro文件: # preserve the line number informat

我目前正在从事一个android库项目,其软件包层次结构如下:

com.example
    |_______ api (contains the public interface of the library)
    |_______ internal (contains the remaining internal classes)
不幸的是,我需要混淆内部类。这将生成以下proguard-rules.pro文件:

# preserve the line number information for stack traces and android studio integration
-keepattributes SourceFile,LineNumberTable

# hide the original source file name. (<--- This messes up android-studio integration)
-renamesourcefileattribute SourceFile

# Preserve information about throwing exceptions and deprecation of methods
-keepattributes Exceptions, Deprecated, Signature

# Preserve the original parameter names of kept methods
-keepparameternames

# Keeps the names of all public/protected classes/fields/methods in the api package
-keep public class com.example.api.* {
  public protected *;
}
#为堆栈跟踪和android studio集成保留行号信息
-keepattributes源文件,LineNumberTable
#隐藏原始源文件名。(