7 Replies Latest reply on Mar 6, 2017 6:37 AM by Jay Kallen

    Failed to find target symbol technologies

    Jay Kallen

      Hello,

      I recently installed the latest version of the Zebra EMDK 6.3.  Then I downloaded the BarcodeSample1 app from the website.  I am running the latest version of Android Studio 2.3.  Whenever I try to launch the project, I get the error:  failed to find target Symbol Technologies LLC:EMDK APIs:19 : C:\Users\jkallen\AppData\Local\Android\Sdk

      Then I see a link for the Android SDK Manager:  Open Android SDK Manager.

       

      Can someone please help me get it working?

      Thanks,

      Jay

        • Re: Failed to find target symbol technologies
          Jacques Gourmelen

          Good afternoon Jay,

           

          In case it helps, let me bring this link to your attention.

           

          Kind regards,
          Jacques

            • Re: Failed to find target symbol technologies
              Jay Kallen

              Yes, I tried this, but it still doesn't work.  The new build.gradle file does not include a dependencies section.  Here is the contents of my build.gradle file within my app directory:

               

              apply plugin: 'com.android.application'

              android {

                compileSdkVersion 'Symbol Technologies LLC:EMDK APIs:19'
                 buildToolsVersion "23.0.2"

                 defaultConfig {

                applicationId "com.symbol.barcodesample1"
                 minSdkVersion 19
                 targetSdkVersion 23
                 versionCode 7
                 versionName "6.0.1"
                 }

               

                compileOptions {

                sourceCompatibility JavaVersion.VERSION_1_7

                targetCompatibility JavaVersion.VERSION_1_7

                }

                buildTypes {

                release {

                minifyEnabled false
                 proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
                 }

                }

                dependencies {

                provided fileTree(include: ['com.symbol.emdk.jar'],

                 dir: 'C:\\Users\\jkallen\\AppData\\Local\\Android\\sdk\\add-ons\\addon-symbol_emdk-symbol-19\\libs')

                compile fileTree(exclude: ['com.symbol.emdk.jar'], dir: 'libs')

                }

              }

                • Re: Failed to find target symbol technologies
                  Darryn Campbell

                  You need to change your compileSdkVersion to be the version of Android you are building against (presumably 23 based on your build tools version).  Then the EMDK functionality will be picked up from the dependencies section per the link above.

                    • Re: Failed to find target symbol technologies
                      Jay Kallen

                      Ok, I'm able to get the gradle to sync with the following gradle update:

                       

                      apply plugin: 'com.android.application'
                      android {

                        compileSdkVersion 'Symbol Technologies LLC:EMDK APIs:23'
                         buildToolsVersion '25.0.0'
                         defaultConfig {

                        applicationId "com.symbol.barcodesample1"
                         minSdkVersion 19
                         targetSdkVersion 23
                         versionCode 7
                         versionName "6.0.1"
                         }

                        compileOptions {

                        sourceCompatibility JavaVersion.VERSION_1_7
                         targetCompatibility JavaVersion.VERSION_1_7
                         }

                        buildTypes {

                        release {

                        minifyEnabled false
                         proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
                         }

                        }

                        productFlavors {

                        }

                      }

                      dependencies {

                        provided fileTree(include: ['com.symbol.emdk.jar'],

                         dir: 'C:\\Users\\jkallen\\AppData\\Local\\Android\\sdk\\add-ons\\addon-symbol_emdk-symbol-23\\libs')

                        compile fileTree(exclude: ['com.symbol.emdk.jar'], dir: 'libs')

                      }

                       

                      However when I try to run it, it prompts me to select Android SDK and there doesn't appear to be an option for the EMDK. 

                      emdk_edit_config.jpg

                        • Re: Failed to find target symbol technologies
                          Darryn Campbell

                          Sorry, for clarity I meant:

                          android {

                            compileSdkVersion 23
                             buildToolsVersion '23.0.2'

                            • Re: Failed to find target symbol technologies
                              Jay Kallen

                              For some reason, it won't let me build the gradle with those settings.  It keeps asking me to update the build tools version.  However, it does sync the gradle at build tools 25.0.2.

                               

                              emdk_error2.jpg

                                • Re: Failed to find target symbol technologies
                                  Jay Kallen

                                  Nevermind, your last change did work.  I got the BarcodeSample1 to work with these gradle settings.  Many thanks!!

                                   

                                  apply plugin: 'com.android.application'
                                  android {

                                    compileSdkVersion 23
                                     buildToolsVersion '25.0.2'
                                     defaultConfig {

                                    applicationId "com.symbol.barcodesample1"
                                     minSdkVersion 19
                                     targetSdkVersion 23
                                     versionCode 7
                                     versionName "6.0.1"
                                     }

                                    compileOptions {

                                    sourceCompatibility JavaVersion.VERSION_1_7
                                     targetCompatibility JavaVersion.VERSION_1_7
                                     }

                                    buildTypes {

                                    release {

                                    minifyEnabled false
                                     proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
                                     }

                                    }

                                    productFlavors {

                                    }

                                  }

                                  dependencies {

                                    provided fileTree(include: ['com.symbol.emdk.jar'],

                                     dir: 'C:\\Users\\jkallen\\AppData\\Local\\Android\\sdk\\add-ons\\addon-symbol_emdk-symbol-23\\libs')

                                    compile fileTree(exclude: ['com.symbol.emdk.jar'], dir: 'libs')

                                  }