我目前在类路径中添加了以下库(android项目,minSDK 16):
不知怎的,毕加索现在拒绝工作,我收到以下错误信息:
VFY: unable to find class referenced in signature (Ljava/nio/file/Path;)
VFY: unable to find class referenced in signature ([Ljava/nio/file/OpenOption;)
Could not find method java.nio.file.Files.newOutputStream, referenced from method okio.Okio.sink
VFY: unable to resolve static method 8759: Ljava/nio/file/Files;.newOutputStream (Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/io/OutputStream;
VFY: replacing opcode 0x71 at 0x000a
VFY: unable to find class referenced in signature (Ljava/nio/file/Path;)
VFY: unable to find class referenced in signature ([Ljava/nio/file/OpenOption;)
Could not find method java.nio.file.Files.newInputStream, referenced from method okio.Okio.source
VFY: unable to resolve static method 8758: Ljava/nio/file/Files;.newInputStream (Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/io/InputStream;
VFY: replacing opcode 0x71 at 0x000a
Could not find method com.squareup.okhttp.OkHttpClient.setInternalCache, referenced from method com.squareup.okhttp.OkUrlFactory.setResponseCache
VFY: unable to resolve virtual method 6548: Lcom/squareup/okhttp/OkHttpClient;.setInternalCache (Lcom/squareup/okhttp/internal/InternalCache;)Lcom/squareup/okhttp/OkHttpClient;
VFY: replacing opcode 0x6e at 0x0009
Could not find method com.squareup.okhttp.OkHttpClient.setConnectTimeout, referenced from method com.squareup.okhttp.internal.huc.HttpURLConnectionImpl.setConnectTimeout
VFY: unable to resolve virtual method 6541: Lcom/squareup/okhttp/OkHttpClient;.setConnectTimeout (JLjava/util/concurrent/TimeUnit;)Lcom/squareup/okhttp/OkHttpClient;
VFY: replacing opcode 0x6e at 0x0005
Could not find method com.squareup.okhttp.OkHttpClient.setReadTimeout, referenced from method com.squareup.okhttp.internal.huc.HttpURLConnectionImpl.setReadTimeout
VFY: unable to resolve virtual method 6553: Lcom/squareup/okhttp/OkHttpClient;.setReadTimeout (JLjava/util/concurrent/TimeUnit;)Lcom/squareu
有没有办法让这些lib一起工作?
答案 0 :(得分:2)
使用okhttp-urlconnection 2.0.0
,而不是RC1。