Hi Stratos,
Sorry for the late reply.
I searched my branches
experimental-fragment-activity-feature-impl-r4
experimental-fragment-activity-feature-impl-r6
with the query:
$ find . -type f -name "*.java" -exec grep -nH -e hasFeature {} NUL
";"
and there are no match.
I think some external code (maybe yours / aother library's) call the
method
Landroid/view/Window;.hasFeature (I)Z.
As Pete Dolye notes, (and Pete Doyle, thanks a lot for your quick
response!)
this method exists since api level 11.
Your project seems to be targeting api level higher than 11 with the
minSdkVersion somewhat lower than it,
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="14"/>
Generally speaking, this requires you special attention when targeting
lower api devices, since
calling new methods(, say, which come from api level 11) is completely
legal
at the compiling phase while it causes VFY on older platforms at
runtime.
On 12月23日, 午前9:13, Pete Doyle <
petedo...@gmail.com> wrote:
> Hi Stratos,
> I'm pretty sure you're using Taro Kobayashi's fork [1] considering my
> original [2] doesn't have a FragmentMapActivity. I'm not sure if he's
> listening here or not so you might have better luck submitting a Github
> issue on his fork or asking on him (@9re) on twitter.
>
> It looks like his FragmentMapActivity was calling Window.hasFeature() which
> only exists on API level 11 or higher [3] (hence the "Could not find method
> android.view.Window.hasFeature").
>
> I think the code in question no longer exists in his base
> 'experimental-fragment-activity-feature-impl-r6' branch [4], so maybe
> re-building from that branch will fix the issue. It might be good to check
> in with Taro to see what the status of that branch is (i.e. if he thinks
> its ready for general use).
>
> Good luck :)
>
> Thanks,
> Pete
>
> [1]
https://github.com/9re/android-support-v4-googlemaps
> [2]
https://github.com/petedoyle/android-support-v4-googlemaps
> [3]
http://developer.android.com/reference/android/view/Window.html#hasFe...)
> [4]
https://github.com/9re/android-support-v4-googlemaps/blob/experimenta...