Base java classes still in the classpath during maven android build

前端 未结 1 1886
闹比i
闹比i 2021-01-28 23:58

I\'m having a rather strange problem caused by both the facts that the android java implementation differs from the sun java implementation and that the base java classes are st

1条回答
  •  抹茶落季
    2021-01-29 00:56

    The problem is that Maven automatically has the Oracle JDK on the classpath and that the Android jar provides alternate implementations of these and they sometimes differ. At this stage I do not know if the Maven Compiler Plugin can be told to remove the JDK from its classpath and just use the dependencies on the classpath. That would imho solve the issue.

    Please create an issue in the Android Maven Plugin issue tracker and potentially investigate by asking on the Maven user or dev list.

    0 讨论(0)
提交回复
热议问题