Quantcast
Channel: Ignite Realtime : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 10742

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

$
0
0

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


Viewing all articles
Browse latest Browse all 10742

Trending Articles