(EXT) java.lang.RuntimeException:Missing type parameter

Source: Internet
Author: User
Java.lang.RuntimeException:Missing type parameter (2015-04-07 14:35:51)
Category: Technology

The program used the Gson new TypeToken, the results packaged into the APK release, found that thrown an exception, but not by packaging the apk when found that everything is normal, baffled its solution, Initially suspected did not pack into the Gson-1.7.1.jar, later after testing found that the other methods of Gson through packaging also can run normally, finally on the Internet for 2 days, and finally found a solution in the Google Gson Forum.

Add in Proguard-project.txt

-dontobfuscate
-dontoptimize

Excerpt from: http://blog.sina.com.cn/s/blog_48964b120102vmm0.html

(EXT) java.lang.RuntimeException:Missing type parameter

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.