Trouble getting builds to work (nube questions)

C Chris Jennings 3 years 7 months ago
7 1 0

Hi,
 
I'm new to Android and am having what I think are dependency issues when trying the tutorials.
I'm targeting the mc9200.
Android Studio version 2.3.3
 
Working on Mac OS Sierra (version 10.12.6), so followed this: EMDK For Android Setup on Mac (Android Studio) - Zebra Technologies Techdocs . All seemed to go well.
 
I worked through this: Data Capture Profile Feature Tutorial - Zebra Technologies Techdocs
But the build fails with errors like this...
Error:(3) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'.
and...
Error:Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt
 
My best nube guess is that there might be a mismatch between the Compile SDK Version and the Build Tools Version in the Project Structure settings. I've tried all sorts of combinations but can't get it to work. (My app's build.gradle is attached)
 
Any ideas?
Thanks!
-Chris

Please Register or Login to post a reply

1 Replies

Y Yanis Dalabiras

Hi Chris,

Looking at your build.gradle you have both the compileSdkVersion of Symbol Technologies AND are providing the emdk.jar as a provided dependency.  You would only need to do one of these two things

I ran up GitHub - Zebra/samples-emdkforandroid-6_4 at ProfileDataCaptureSample1  on my Windows machine which I believe matches what the tutorial is producing, my gradle file is attached.

You will also need all the SDK dependencies (e.g. buildTools 25) but Android Studio should download those automatically.

Hope that helps
Darryn.

CONTACT
Can’t find what you’re looking for?