轉載自 https://groups.google.com/forum/#!topic/android-building/gRuDxqEB1H8
in Android M, you can achieve that by using LOCAL_JACK_ENABLED = disabled variable in your makefile.
In Android N it is more tricky...it is broken and the solution to this is yet to come in AOSP mainline of Android N.
Solution is available in master.
Checked in 7.1.1 Android N.
You need to make use of javac-check target. This has been implemented for this purpose.
make javac-check-$(LOCAL_MODULE)
So, if your module name is "ABCD"
make javac-check-ABCD
This generates a classes-full-debug.jar, in the common\obj\JAVA_LIBRARIES\ABCD_intermediates.
This is the jar which you can use in your Studio environment.
Most important, this solution is not yet visible in any of the tags on Android N branch. It is part of the master hence you need to add this solution to your branch manually.