Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
683 views
in Technique[技术] by (71.8m points)

java - java.lang.VerifyError:验证程序拒绝类。 代码在调试模式下可以正常工作,但在发布模式下不会抛出此错误(java.lang.VerifyError: Verifier rejected class. Code working fine in debug mode, but not throwing this error in release mode)

Please help on this error.Below is error logcat:

(请帮助解决此错误。以下是错误logcat:)

Caused by: java.lang.VerifyError: Verifier rejected class edu.mit.jwi.morph.SimpleStemmer: java.util.List edu.mit.jwi.morph.SimpleStemmer.getNounCollocationRoots(java.lang.String) failed to verify: java.util.List edu.mit.jwi.morph.SimpleStemmer.getNounCollocationRoots(java.lang.String): [0x50] register v6 has type Reference: java.lang.Object but expected Precise Reference: java.lang.String

     java.util.List edu.mit.jwi.morph.SimpleStemmer.getVerbCollocationRoots(java.lang.String) failed to verify: java.util.List edu.mit.jwi.morph.SimpleStemmer.getVerbCollocationRoots(java.lang.String): [0x60] register v7 has type Reference: java.lang.Object but expected Precise Reference: java.lang.String
  ask by user2978140 translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Resolved.

(解决。)

This was an unnecessary issue thrown after the use of Proguard.

(使用Proguard后,这是一个不必要的问题。)

Added -dontwarn for that class in the Proguard rules.

(在Proguard规则中为该类添加了-dontwarn。)

The release is working perfectly fine.

(该版本运行正常。)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...