AsyncTask.doInBackground - abstract method not implemented error in Android Scala project

时间秒杀一切 提交于 2019-12-04 17:24:27

You should make sure that ProGuard gets a suitable Android runtime (android.jar). Depending on your build process, it is added automatically (e.g. Android Ant, Gradle, Eclipse) or you have to add it yourself with the option -libraryjars (e.g. custom build).

Note that you can see which configuration ProGuard is applying with

-printconfiguration config.txt

You should then check the -injars and -libraryjars options.

Without the proper runtime jar, ProGuard generally prints out many warnings and by default refuses to continue. It needs the runtime classes to analyze the structure of the application. In this case, for instance, it needs to know the runtime interface methods, so it doesn't remove them from your implementation.

This may help.

http://piotrbuda.eu/2012/12/scala-and-android-asynctask-implementation-problem.html

Signature issue I'd hazard a guess.

Just had the same problem myself, changing the signature resolved the issue for me.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!