Closed GoogleCodeExporter closed 8 years ago
Perhaps it would make more sense to build a series of
android_framework_mocks.jar files - one for each API level and make the
developer choose which jar to reference in their test project. They already
have to make the choice of which Android API level they are developing against
so this would not seem unreasonable.
Original comment by t...@leach.it
on 6 Jul 2011 at 10:48
I'm seeing this when trying to test NFC Tag classes - I'm seeing the following:
error: Could not find android.nfc.Tag
error: java.lang.ClassNotFoundException:
v15.genmocks.android.nfc.TagDelegateSubclass
It would be nice if we could specify which version of the API we're targeting
(like you do in the AndroidManifest.xml and in Eclipse)
Thanks!
Original comment by msprin...@google.com
on 29 Jul 2011 at 11:00
Original comment by sskha...@google.com
on 14 Oct 2011 at 5:41
This issue has been identified and we are introducing an annotation processor
option that can be used for indicate a list of target versions.
Original comment by sskha...@google.com
on 25 Oct 2011 at 11:34
Added a way to specify target api level as an annotation processor option.
For Gingerbread only, use:
-target_apilevel=10
For Gingerbread and ICS, use:
-target_apilevel=10,14
For all API levels, do not specify the target_apilevel option.
Original comment by sskha...@google.com
on 1 Mar 2012 at 9:53
Original issue reported on code.google.com by
t...@leach.it
on 1 Jul 2011 at 1:53Attachments: