how to make zxing's source code can be debug in android studio?

63 views
Skip to first unread message

Lu Luo

unread,
May 31, 2017, 2:17:19 AM5/31/17
to zxing
Like my attachments picture, it can not be debugged if we import ZXing jar file.
QQ截图20170531141107.png

Zorawar B.

unread,
May 31, 2017, 9:07:29 AM5/31/17
to zxing
On Wednesday, May 31, 2017 at 2:17:19 AM UTC-4, Lu Luo wrote:
> Like my attachments picture, it can not be debugged if we import ZXing jar file.

You would just need to get the sources and then attach it in the IDE.
http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22com.google.zxing%22%20AND%20a%3A%22core%22

Hope that is what you wanted to do.


Regards,
Zorawar

Lu Luo

unread,
May 31, 2017, 9:51:11 PM5/31/17
to zxing
> Do you mean that I should add the core-3.3.0-source.jar file?That does not work.
> Regards,
> Zorawar

QQ截图20170601094550.png

Lu Luo

unread,
May 31, 2017, 10:13:48 PM5/31/17
to zxing
在 2017年6月1日星期四 UTC+8上午9:51:11,Lu Luo写道:
I'm so sorry,it works now!
Q2.png

Sean Owen

unread,
Jun 4, 2017, 10:37:53 AM6/4/17
to zxing
If you need the source, it's much more direct to get it from Github:

But really, you need to declare a dependency on the library artifact you want using Maven. Then the IDE just downloads source for you.

This isn't the right way to do it.

Lu Luo

unread,
Jun 5, 2017, 10:33:51 PM6/5/17
to zxing
在 2017年6月4日星期日 UTC+8下午10:37:53,Sean Owen写道:
Thank you ,Sean Owen, my jar file is indeed downloaded from the ZXing official website,
Reply all
Reply to author
Forward
0 new messages