E/SmackConfiguration﹕ Could not determine Smack version
java.lang.NullPointerException
at java.io.Reader.<init>(Reader.java:64)
at java.io.InputStreamReader.<init>(InputStreamReader.java:122)
at java.io.InputStreamReader.<init>(InputStreamReader.java:59)
at org.jivesoftware.smack.SmackConfiguration.<clinit>(SmackConfiguration.java:102)
at org.jivesoftware.smack.ConnectionConfiguration.<init>(ConnectionConfiguration.j ava:67)
I imported asmack source to android studio and use gradle to compile.
My App is a android app, my app depend on asmack for IM chat.
import successfully, compile successfully, but run app in android system, I got error stack above.
the resonse is BufferedReader reader = new BufferedReader(new InputStreamReader(FileUtils.getStreamForUrl("classpath:org.jivesoftware.smack/v ersion", null)));
can not read version file in package. I don't know how to resolve it. Please help me!
PS: resource files are available absolutely.