Intellij IDEA not recognizing Android library resources -



Intellij IDEA not recognizing Android library resources -

i have added google play services library project android project in intelli-j appears resources still not beingness recognized ide. getting next error when app attempts inflate map:

error/androidruntime(16002): fatal exception: main java.lang.noclassdeffounderror: com.google.android.gms.r$styleable @ com.google.android.gms.maps.googlemapoptions.createfromattributes(unknown source) @ com.google.android.gms.maps.supportmapfragment.oninflate(unknown source)

here code fragment in layout xml.

<fragment xmlns:map="http://schemas.android.com/apk/res-auto" android:id="@+id/map" android:layout_width="match_parent" android:layout_height="200dp" class="com.google.android.gms.maps.supportmapfragment" map:camerazoom="13" map:maptype="normal" map:uicompass="false" map:uirotategestures="true" map:uiscrollgestures="false" map:uitiltgestures="true" map:uizoomgestures="true" />

in maps_attrs.xml in google play project, <declare-styleable name="mapattrs"> "mapattrs" highlighted in red.

the code functions correctly when compiled in eclipse.

does know how thought recognize resources?

i able find workaround reinstalling google play services android, compiling in eclipse, , reattaching thought project , redirecting r.java output of google-play-services-lib dummy directory (changing directory r.java output under compiler tab of google-play-services module's android face '.../gen' '.../_gen'). i'm still not absolutely sure causing it.

it looks jetbrains going alter behavior in 12.1: http://youtrack.jetbrains.com/issue/idea-99045

android intellij-idea google-play-services

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -