Problem in adding google map as a new feature into ODK collect

Hello
Yaw and Mitch,

A Greeting from SDRC .

We want to add a new feature into our own customized ODK collect. i.e A
Google map to show the road way from MyLoacation to the destination whose
Lat-Long is present.
We have the Lat-Long of the destination in our DB. We have successfully
created an independent app which selected Lat-Long from server through a
Web Service and showing the road in Google Map.
But the problem is, when we are trying add the same feature into ODK
collect through a new menu , the activity which need to show map crashes by
showing the error
java.lang.NoClassDefFoundError: Failed resolution of:
Lcom/google/android/gms/R$styleable;
Here is our gradle.build file

dependencies {
compile fileTree(dir: 'libs', include: '*.jar')

compile 'com.android.support:appcompat-v7:23.1.1'
compile 'org.springframework.android:spring-android-rest-template:1.0.1.RELEASE'

compile 'com.fasterxml.jackson.core:jackson-databind:2.3.2'

}
We have kept play service jar i.e google-play-services.jar and remaining
dependent .jar files into the libs folder.

Can you please help us to complete this additional feature. We will
definitely put the entire code into into Github after completion.

Regards
Debashish Das
Senior Developer (SDRC)

Hi Debashish,

I don't know a ton about the gradle files, but it sounds like you
aren't including the Play Services project properly. I'd start from
the trunk version of Collect with the correct project structure and
then move in your code changes.

Yaw

ยทยทยท -- Need ODK consultants? Nafundi provides form design, server setup, in-field training, and software development for ODK. Go to https://nafundi.com to get started.

On Mon, Dec 14, 2015 at 8:16 PM, Debasis Das bengulee@gmail.com wrote:

Hello
Yaw and Mitch,

A Greeting from SDRC .

We want to add a new feature into our own customized ODK collect. i.e A
Google map to show the road way from MyLoacation to the destination whose
Lat-Long is present.
We have the Lat-Long of the destination in our DB. We have successfully
created an independent app which selected Lat-Long from server through a Web
Service and showing the road in Google Map.
But the problem is, when we are trying add the same feature into ODK collect
through a new menu , the activity which need to show map crashes by showing
the error
java.lang.NoClassDefFoundError: Failed resolution of:
Lcom/google/android/gms/R$styleable;
Here is our gradle.build file

dependencies {
compile fileTree(dir: 'libs', include: '*.jar')

compile 'com.android.support:appcompat-v7:23.1.1'
compile

'org.springframework.android:spring-android-rest-template:1.0.1.RELEASE'

compile 'com.fasterxml.jackson.core:jackson-databind:2.3.2'

}
We have kept play service jar i.e google-play-services.jar and remaining
dependent .jar files into the libs folder.

Can you please help us to complete this additional feature. We will
definitely put the entire code into into Github after completion.

Regards
Debashish Das
Senior Developer (SDRC)

--
You received this message because you are subscribed to the Google Groups
"ODK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.