由于proguard警告,Android gradle失败

时间:2018-10-19 07:25:28

标签: android gradle proguard

我们的gradle构建由于以下proguard警告而失败:

  

有1个库类实例,具体取决于程序   课程。

有人知道如何找到警告中提到的这些类吗?

在警告发生之前还有更多日志

Note: the configuration keeps the entry point 'rx.internal.util.InternalObservableUtils { rx.functions.Func0 createReplaySupplier(rx.Observable,int); }', but not the descriptor class 'rx.Observable'
Note: the configuration keeps the entry point 'rx.internal.util.InternalObservableUtils { rx.functions.Func0 createReplaySupplier(rx.Observable,long,java.util.concurrent.TimeUnit,rx.Scheduler); }', but not the descriptor class 'rx.Observable'
Note: the configuration keeps the entry point 'rx.internal.util.InternalObservableUtils { rx.functions.Func0 createReplaySupplier(rx.Observable,long,java.util.concurrent.TimeUnit,rx.Scheduler); }', but not the descriptor class 'rx.Scheduler'
Note: the configuration keeps the entry point 'rx.internal.util.InternalObservableUtils { rx.functions.Func0 createReplaySupplier(rx.Observable,int,long,java.util.concurrent.TimeUnit,rx.Scheduler); }', but not the descriptor class 'rx.Observable'
Note: the configuration keeps the entry point 'rx.internal.util.InternalObservableUtils { rx.functions.Func0 createReplaySupplier(rx.Observable,int,long,java.util.concurrent.TimeUnit,rx.Scheduler); }', but not the descriptor class 'rx.Scheduler'
Note: the configuration keeps the entry point 'rx.internal.util.InternalObservableUtils { rx.functions.Func2 createCollectorCaller(rx.functions.Action2); }', but not the descriptor class 'rx.functions.Action2'
Note: the configuration explicitly specifies 'android.widget.GridLayout' to keep library class 'android.widget.GridLayout'
Note: the configuration explicitly specifies 'android.widget.Space' to keep library class 'android.widget.Space'
Note: there were 3 references to unknown classes.
      You should check your configuration for typos.
      (http://proguard.sourceforge.net/manual/troubleshooting.html#unknownclass)
Note: there were 1 references to unknown class members.
      You should check your configuration for typos.
Note: there were 2459 unkept descriptor classes in kept class members.
      You should consider explicitly keeping the mentioned classes
      (using '-keep').
      (http://proguard.sourceforge.net/manual/troubleshooting.html#descriptorclass)
Note: there were 2 library classes explicitly being kept.
      You don't need to keep library classes; they are already left unchanged.
      (http://proguard.sourceforge.net/manual/troubleshooting.html#libraryclass)
Note: there were 40 unresolved dynamic references to classes or interfaces.
      You should check if you need to specify additional program jars.
      (http://proguard.sourceforge.net/manual/troubleshooting.html#dynamicalclass)
Note: there were 2 class casts of dynamically created class instances.
      You might consider explicitly keeping the mentioned classes and/or
      their implementations (using '-keep').
      (http://proguard.sourceforge.net/manual/troubleshooting.html#dynamicalclasscast)
Warning: there were 1 instances of library classes depending on program classes.
         You must avoid such dependencies, since the program classes will
         be processed, while the library classes will remain unchanged.
         (http://proguard.sourceforge.net/manual/troubleshooting.html#dependency)
Warning: Exception while processing task java.io.IOException: Please correct the above warnings first.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task '...'.

0 个答案:

没有答案