AnsweredAssumed Answered

import asmack source to android studio,but run App failed.

Question asked by myth2loki on Nov 26, 2014
Latest reply on Jan 24, 2015 by akram

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.

04D465B3-75E8-4D0C-8F56-E672D1362D13.png

Outcomes