Cannot Instantiate Any Google Play Services XML Widgets -



Cannot Instantiate Any Google Play Services XML Widgets -

so i'm trying enhance android application adding various google play services it. imported latest library says on google developer page , can utilize of functions , objects within java portion. but, problem when seek reference same library in xml. each time get:

"the next classes not instantiated: - com.google.android.gms.common.signinbutton"

the error log: "com.google.android.gms.common.signinbutton failed instantiate. java.lang.verifyerror: expecting stackmap frame @ branch target 15"

each time run it, eclipse crashes , says vm has stopped (gc overhead limit). i've tried downgrading java, using different libraries externally, ect.

manifest.xml

<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.me.wikiplay" android:versioncode="3" android:versionname="1.0.2" > <uses-sdk android:minsdkversion="14" android:targetsdkversion="20" /> <uses-permission android:name="android.permission.internet" /> <uses-permission android:name="android.permission.write_external_storage" /> <application android:allowbackup="true" android:icon="@drawable/title_bar_logo" android:label="@string/app_name" android:theme="@style/apptheme" > <activity android:name="com.me.wikiplay.mainactivity" android:label="@string/app_name" android:screenorientation="portrait" > <intent-filter> <action android:name="android.intent.action.main" /> <category android:name="android.intent.category.launcher" /> </intent-filter> <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" /> </activity> </application> </manifest>

xml layout file

<?xml version="1.0" encoding="utf-8"?> <linearlayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <com.google.android.gms.common.signinbutton android:id="@+id/sign_in_button" android:layout_width="wrap_content" android:layout_height="wrap_content" /> <!-- sign-out button --> <button android:id="@+id/sign_out_button" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="sign out" android:visibility="gone" /> </linearlayout>

does know deal is? there doing wrong or need alter work?

xml google-play-services android

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -