Skip to content

Could not find com.github.datalogic:datalogic-android-sdk:1.29 #15

@GHMusicalCoder

Description

@GHMusicalCoder

Building a new test application on a Datalogic Memor 1 device.

Following the instructions from https://datalogic.github.io/android/overview, I started a new app in Android Studio (set to Oreo 8.1 as that is what the device is running).

To the root build.gradle file, I added maven { url "https://jitpack.io" } :

buildscript {
    repositories {
        google()
        mavenCentral()
        maven { url "https://jitpack.io" }
    }

    dependencies {
        classpath "com.android.tools.build:gradle:7.0.2"
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.31"

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

and to the app build.gradle file I added implementation 'com.github.datalogic:datalogic-android-sdk:1.29' :

plugins {
    id 'com.android.application'
    id 'kotlin-android'
}

android {
    compileSdk 31

    defaultConfig {
        applicationId "com.classicoptical.anotherdltest"
        minSdk 27
        targetSdk 31
        versionCode 1
        versionName "1.0"

        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
    kotlinOptions {
        jvmTarget = '1.8'
    }
    buildFeatures {
        viewBinding = true
    }
}

dependencies {

    implementation 'androidx.core:core-ktx:1.6.0'
    implementation 'androidx.appcompat:appcompat:1.3.1'
    implementation 'com.google.android.material:material:1.4.0'
    implementation 'androidx.constraintlayout:constraintlayout:2.1.1'
    testImplementation 'junit:junit:4.+'
    androidTestImplementation 'androidx.test.ext:junit:1.1.3'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'

    //data logic sdk
    implementation 'com.github.datalogic:datalogic-android-sdk:1.29'
}

And I sync afterwards.

However, when I try to run Build > Make Project, I get

Could not find com.github.datalogic:datalogic-android-sdk:1.29.
Required by:
    project :app
Search in build.gradle files

And I am stumped as to what the issue is...

I do have the Memor1 plugged into the computer so that Android Studio is pointing to the device.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions