Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There is a problem with 'Sync Project with Gradle Files' #7

Open
Exe-Design opened this issue Jan 18, 2022 · 0 comments
Open

There is a problem with 'Sync Project with Gradle Files' #7

Exe-Design opened this issue Jan 18, 2022 · 0 comments

Comments

@Exe-Design
Copy link

I edit the build.gradle(Module.gsdk.groundsdkdemo) file according to the steps on the official groundsdk-android.
But the AS shows 'Failed to resolve: com.parrot.drone.groundsdk:groundsdk:7.0
Show in Project Structure dialog
Affected Modules: groundsdkdemo'
I am not sure what the problem is.

Document content
apply plugin: 'com.android.application'

android {
defaultConfig {
minSdkVersion 24
// Google Geo API key. Put your own key to enable google Maps related features in demo.
resValue 'string', 'gsdkdemo_google_geo_api_key', ''
}

lintOptions {
       disable 'StringFormatInvalid', 'IconMissingDensityFolder', 'NonConstantResourceId'
      checkDependencies true
}

// Add java 8 compatibility needed by Ground SDK
compileOptions {
         sourceCompatibility JavaVersion.VERSION_1_8
         targetCompatibility JavaVersion.VERSION_1_8
}

}

repositories {
// Add jcenter repository (if not already present)
jcenter()
google()
}

dependencies {
runtimeOnly project(':arsdkengine')

      implementation project(':groundsdk')
      implementation project(':sdkcore')

     implementation androidXLocalBroadcastManager
     implementation googlePlayServicesLocation
     implementation 'com.google.android.gms:play-services-maps:17.0.0'
     implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
     implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
     implementation 'com.google.android.material:material:1.3.0'

     implementation 'com.parrot.drone.groundsdk:groundsdk:7.0'
    runtimeOnly 'com.parrot.drone.groundsdk:arsdkengine:7.0'

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant