ProGuard 找不到 类 飞行路线

ProGuard can't find classes flyway

我在 android 应用程序中使用 Flyway。 现在使用 ProGuard,版本 5.3.3 找不到一些引用 类.

我的应用build.gradle是

android {

compileSdkVersion 26
buildToolsVersion '26.0.3'
...

implementation 'org.flywaydb:flyway-core:5.0.7'
implementation 'org.sqldroid:sqldroid:1.0.3'

}

Proguard 输出为

Warning: core.internal.util.scanner.classpath.jboss.JBossVFSv3ClassPathLocationScanner: can't find superclass or interface

org.jboss.vfs.VirtualFileFilter Warning: org.flywaydb.core.api.migration.spring.SpringJdbcMigration: can't find referenced class org.springframework.jdbc.core.JdbcTemplate Warning: org.flywaydb.core.internal.database.postgresql.PostgreSQLCopyStatement: can't find referenced class org.postgresql.copy.CopyManager Warning: org.flywaydb.core.internal.database.postgresql.PostgreSQLCopyStatement: can't find referenced class org.postgresql.core.BaseConnection Warning: org.flywaydb.core.internal.database.postgresql.PostgreSQLCopyStatement: can't find referenced class org.postgresql.copy.CopyManager Warning: org.flywaydb.core.internal.database.postgresql.PostgreSQLCopyStatement: can't find referenced class org.postgresql.copy.CopyManager Warning: org.flywaydb.core.internal.database.postgresql.PostgreSQLCopyStatement: can't find referenced class org.postgresql.copy.CopyManager Warning: org.flywaydb.core.internal.resolver.spring.SpringJdbcMigrationExecutor: can't find referenced class org.springframework.jdbc.core.JdbcTemplate Warning: org.flywaydb.core.internal.resolver.spring.SpringJdbcMigrationExecutor: can't find referenced class org.springframework.jdbc.datasource.SingleConnectionDataSource Warning: org.flywaydb.core.internal.resolver.spring.SpringJdbcMigrationExecutor: can't find referenced class org.springframework.jdbc.datasource.SingleConnectionDataSource Warning: org.flywaydb.core.internal.resolver.spring.SpringJdbcMigrationExecutor: can't find referenced class org.springframework.jdbc.core.JdbcTemplate Warning: org.flywaydb.core.internal.util.logging.slf4j.Slf4jLog: can't find referenced class org.slf4j.Logger Warning: org.flywaydb.core.internal.util.logging.slf4j.Slf4jLog: can't find referenced class org.slf4j.Logger Warning: org.flywaydb.core.internal.util.logging.slf4j.Slf4jLog: can't find referenced class org.slf4j.Logger Warning: org.flywaydb.core.internal.util.logging.slf4j.Slf4jLog: can't find referenced class org.slf4j.Logger Warning: org.flywaydb.core.internal.util.logging.slf4j.Slf4jLog: can't find referenced class org.slf4j.Logger Warning: org.flywaydb.core.internal.util.logging.slf4j.Slf4jLog: can't find referenced class org.slf4j.Logger Warning: org.flywaydb.core.internal.util.logging.slf4j.Slf4jLog: can't find referenced class org.slf4j.Logger Warning: org.flywaydb.core.internal.util.logging.slf4j.Slf4jLog: can't find referenced class org.slf4j.Logger Warning: org.flywaydb.core.internal.util.logging.slf4j.Slf4jLog: can't find referenced class org.slf4j.Logger Warning: org.flywaydb.core.internal.util.logging.slf4j.Slf4jLogCreator: can't find referenced class org.slf4j.LoggerFactory Warning: org.flywaydb.core.internal.util.logging.slf4j.Slf4jLogCreator: can't find referenced class org.slf4j.LoggerFactory Warning: org.flywaydb.core.internal.util.scanner.classpath.OsgiClassPathLocationScanner: can't find referenced class org.osgi.framework.FrameworkUtil Warning: org.flywaydb.core.internal.util.scanner.classpath.OsgiClassPathLocationScanner: can't find referenced class org.osgi.framework.FrameworkUtil Warning: org.flywaydb.core.internal.util.scanner.classpath.OsgiClassPathLocationScanner: can't find referenced class org.osgi.framework.Bundle Warning: org.flywaydb.core.internal.util.scanner.classpath.OsgiClassPathLocationScanner: can't find referenced class org.osgi.framework.Bundle Warning: org.flywaydb.core.internal.util.scanner.classpath.OsgiClassPathLocationScanner: can't find referenced class org.osgi.framework.Bundle Warning: org.flywaydb.core.internal.util.scanner.classpath.OsgiClassPathLocationScanner: can't find referenced class org.osgi.framework.BundleContext Warning: org.flywaydb.core.internal.util.scanner.classpath.OsgiClassPathLocationScanner: can't find referenced class org.osgi.framework.BundleContext Warning: org.flywaydb.core.internal.util.scanner.classpath.OsgiClassPathLocationScanner: can't find referenced class org.osgi.framework.Bundle Warning: org.flywaydb.core.internal.util.scanner.classpath.OsgiClassPathLocationScanner: can't find referenced class org.osgi.framework.Bundle Warning: org.flywaydb.core.internal.util.scanner.classpath.OsgiClassPathLocationScanner: can't find referenced class org.osgi.framework.Bundle Warning: org.flywaydb.core.internal.util.scanner.classpath.OsgiClassPathLocationScanner: can't find referenced class org.osgi.framework.Bundle Warning: org.flywaydb.core.internal.util.scanner.classpath.OsgiClassPathLocationScanner: can't find referenced class org.osgi.framework.Bundle Warning: org.flywaydb.core.internal.util.scanner.classpath.jboss.JBossVFSv3ClassPathLocationScanner: can't find referenced class org.jboss.vfs.VFS Warning: org.flywaydb.core.internal.util.scanner.classpath.jboss.JBossVFSv3ClassPathLocationScanner: can't find referenced class org.jboss.vfs.VFS Warning: org.flywaydb.core.internal.util.scanner.classpath.jboss.JBossVFSv3ClassPathLocationScanner: can't find referenced class org.jboss.vfs.VirtualFile Warning: org.flywaydb.core.internal.util.scanner.classpath.jboss.JBossVFSv3ClassPathLocationScanner: can't find referenced class org.jboss.vfs.VirtualFile Warning: org.flywaydb.core.internal.util.scanner.classpath.jboss.JBossVFSv3ClassPathLocationScanner: can't find referenced class org.jboss.vfs.VirtualFile Warning: org.flywaydb.core.internal.util.scanner.classpath.jboss.JBossVFSv3ClassPathLocationScanner: can't find referenced class org.jboss.vfs.VirtualFile Warning: org.flywaydb.core.internal.util.scanner.classpath.jboss.JBossVFSv3ClassPathLocationScanner: can't find referenced class org.jboss.vfs.VirtualFile Warning: org.flywaydb.core.internal.util.scanner.classpath.jboss.JBossVFSv3ClassPathLocationScanner: can't find referenced class org.jboss.vfs.VirtualFileFilter Warning: org.flywaydb.core.internal.util.scanner.classpath.jboss.JBossVFSv3ClassPathLocationScanner: can't find referenced class org.jboss.vfs.VirtualFile Warning: org.flywaydb.core.internal.util.scanner.classpath.jboss.JBossVFSv3ClassPathLocationScanner: can't find referenced class org.jboss.vfs.VirtualFile Warning: org.flywaydb.core.internal.util.scanner.classpath.jboss.JBossVFSv3ClassPathLocationScanner: can't find referenced class org.jboss.vfs.VirtualFile Warning: org.flywaydb.core.internal.util.scanner.classpath.jboss.JBossVFSv3ClassPathLocationScanner: can't find referenced class org.jboss.vfs.VirtualFile Note: org.flywaydb.core.internal.util.scanner.classpath.jboss.JBossVFSv2UrlResolver: can't find dynamically referenced class org.jboss.virtual.VFS Note: org.flywaydb.core.internal.util.scanner.classpath.jboss.JBossVFSv2UrlResolver: can't find dynamically referenced class org.jboss.virtual.VFSUtils Note: org.flywaydb.core.internal.util.scanner.classpath.jboss.JBossVFSv2UrlResolver: can't find dynamically referenced class org.jboss.virtual.VirtualFile

任何帮助将不胜感激。

我的项目构建成功,问题中没有列出 类。我只是将后续行添加到 proguard-rules.pro

-dontwarn org.flywaydb.core.internal.**
-dontwarn org.flywaydb.core.api.migration.spring.**