Page 1 of 2

error: package com.google.android.gms.common does not exist

Posted: Wed Mar 25, 2015 9:25 am
by M&M

hi,

I am using a cordova plugin in my app and I get the following error

error: package com.google.android.gms.common does not exist

I think this has to do with google play services dependency.

I found this plugin to add Google Play Services
https://github.com/MobileChromeApps/g...

But I'd need some help on this regarding where the folders / files should be put

Or is there a way I can use this: https://github.com/ptgamr/cordova-goo...

I just want google play service available in my app as my geo-fencing plugin depends on google play services.

Thanks,
M&M


error: package com.google.android.gms.common does not exist

Posted: Wed Mar 25, 2015 5:55 pm
by Egor Kotov6832188

Hello M&M,

Your plugin should be placed in the same folder as Toster tutorial plugin.


error: package com.google.android.gms.common does not exist

Posted: Thu Mar 26, 2015 2:11 am
by M&M

I do not understand the answer. I.have explained the problem quite clearly i guess. I was expecting something better than just asking to repeatedly refer to the tutorials. The.quality of answers on the forum has gone down drastically or they don't get answered at all


error: package com.google.android.gms.common does not exist

Posted: Thu Mar 26, 2015 4:10 pm
by Egor Kotov6832188

M&M,

Your question related to Java project structure.

error: package com.google.android.gms.common does not exist
I think this has to do with google play services dependency.

No, it is related to your file location in the Java project.
Basically, it says, that you haven't created folder structure, thus it can't find it.


error: package com.google.android.gms.common does not exist

Posted: Thu Mar 26, 2015 5:39 pm
by M&M

all i am doing is to use a geolocation plugin and from what I understand com.google.android.gms.common is related to Google Play Services

http://developer.android.com/referenc...

I have seen other plugins also having dependency to Google Play Services. So how do I include this in my app? If you can let me know the file structure and what/where to copy to enable Google Play Service in my app

thanks,
M&M


error: package com.google.android.gms.common does not exist

Posted: Sun Mar 29, 2015 8:39 pm
by Egor Kotov6832188

M&M,

Answer is provided in next thread https://getsatisfaction.com/apperyio/...


error: package com.google.android.gms.common does not exist

Posted: Mon Mar 26, 2018 9:20 am
by r monisha

i too have a doubt on android studio with my quotient (import com.google.android.gms.location.LocationRequest)


error: package com.google.android.gms.common does not exist

Posted: Mon Mar 26, 2018 9:20 am
by r monisha

i have error on these lines which works under android studio
(import com.google.android.gms.location.LocationListener;
import com.google.android.gms.location.LocationRequest;
import com.google.android.gms.location.LocationServices;)
give me a better solution


error: package com.google.android.gms.common does not exist

Posted: Mon Mar 26, 2018 9:20 am
by r monisha

import com.google.android.gms.location.LocationListener;
import com.google.android.gms.location.LocationRequest;
import com.google.android.gms.location.LocationServices;


error: package com.google.android.gms.common does not exist

Posted: Mon Mar 26, 2018 9:21 am
by r monisha

Error:(15, 102) error: package com.google.android.gms.location does not exist
Error:(16, 47) error: package com.google.android.gms.location does not exist
Error:(17, 47) error: package com.google.android.gms.location does not exist
Error:(28, 63) error: package com.google.android.gms.nearby.messages.internal does not exist
Error:(30, 39) error: package org.apache.http.message does not exist
Error:(41, 9) error: cannot find symbol class LocationListener
Error:(47, 5) error: cannot find symbol class LocationRequest
Error:(51, 5) error: cannot find symbol class JSONParser
Error:(51, 31) error: cannot find symbol class JSONParser
Error:(89, 25) error: cannot find symbol variable LocationServices
Error:(95, 32) error: cannot find symbol class LocationRequest
Error:(98, 38) error: cannot find symbol variable LocationRequest
Error:(102, 29) error: package LocationServices does not exist
Error:(202, 28) error: cannot find symbol class BasicNameValuePair
Error:(241, 28) error: cannot find symbol class BasicNameValuePair
Error:(242, 28) error: cannot find symbol class BasicNameValuePair
Error:(244, 32) error: cannot find symbol class BasicNameValuePair
Error:(245, 32) error: cannot find symbol class BasicNameValuePair
Error:Execution failed for task ':app:compileDebugJavaWithJavac'.
Compilation failed; see the compiler error output for details.