ASNE icon indicating copy to clipboard operation
ASNE copied to clipboard

NoClassDefFoundError GooglePlusSocialNetwork when add Google play services

Open brucemax opened this issue 10 years ago • 7 comments

If add google play services dependency to demo or other project dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') compile 'com.android.support:appcompat-v7:22.2.0' compile 'com.github.asne:asne-facebook:0.3.3' compile 'com.github.asne:asne-linkedin:0.3.3' compile 'com.github.asne:asne-twitter:0.3.3' compile ('com.github.asne:asne-googleplus:0.3.3') compile 'com.google.android.gms:play-services:7.5.0' }

I get java.lang.NoClassDefFoundError: com.github.gorbin.asne.googleplus.GooglePlusSocialNetwork at com.github.gorbin.asnetutorial.MainFragment.onCreateView(MainFragment.java:91)

At run time

brucemax avatar Aug 05 '15 14:08 brucemax

In your project compile 'com.google.android.gms:play-services:7.5.0'

In ANSE compile('com.google.android.gms:play-services:4.3.23@aar') { exclude module: 'support-v4' }

If you use play-services 7.X will make GooglePlayServicesClient deprecated which make this error

you should download it and import as android-lib , and then change

compile('com.google.android.gms:play-services:4.3.23@aar')

to

compile('com.google.android.gms:play-services:6.X.X@arr')

in my case 6.5.87@aar

ghost avatar Sep 17 '15 14:09 ghost

I'm having the same issue with new play services 8.1.0.In my project i set it to 8,also build a googleplus project from library and set playservices to 6.5.87,unfortunately i still have this exception.

ko3ak1990 avatar Oct 27 '15 11:10 ko3ak1990

The error is that com.github.asne:asne-googleplus:0.3.3 is using a deprecated library: com.google.android.gms.common.GooglePlayServicesClient, instead of com.google.android.gms.common.api.GoogleApiClient only, given that GooglePlayServicesClient was removed from the SDK, the error comes when there is no such class compiled for the project.

encouver avatar Oct 27 '15 20:10 encouver

Hi Guys, someone has solved this problem?

mitsus avatar Jun 08 '16 10:06 mitsus

Help us someone, please!

vanjavanjavanja avatar Jul 05 '16 19:07 vanjavanjavanja

Give me a couple of weeks, I'll see what I can do. Work has been tight so haven't been able to work on anything asne and trust me, the backlog is huge! I'll try to fix the most pertinent issues in the mean time.

On Tue, Jul 5, 2016, 7:49 PM vanjavanjavanja [email protected] wrote:

Help us someone, please!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/gorbin/ASNE/issues/97#issuecomment-230583029, or mute the thread https://github.com/notifications/unsubscribe/AA4XZc_tt5iBOmg0UZz7TbEJefWoJfCpks5qSrU6gaJpZM4FmF0v .

thedumbtechguy avatar Jul 05 '16 20:07 thedumbtechguy

Hey @frostymarvelous , do u have any updates or estimates? Thanx

vanjavanjavanja avatar Aug 14 '16 19:08 vanjavanjavanja