ClassCastException when casting Class.forName object to interface implemented by this object
- 阅读更多 关于 ClassCastException when casting Class.forName object to interface implemented by this object
问题 I want to create some plugin example for android, so I have 3 projects for it: ExternalLibInterface - contains IExternalLib , and builds to externallibinterface.jar file package com.example.externallibinterface; public interface IExternalLib { public String someMethod( String param ); } ExternalLib - contains externallibinterface.jar and SomeClass implements IExternalLib , builds to externallib.apk package com.example.externallib; import com.example.externallibinterface.IExternalLib; public