Insta360Develop / CameraSDK-Android

Android SDK to control Insta360 cameras
82 stars 9 forks source link

build problem: POM never downloads #36

Open lieberk2-hd opened 1 year ago

lieberk2-hd commented 1 year ago

I have this in my build.gradle:

// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
    id 'com.android.application' version '7.1.3' apply false
    id 'com.android.library' version '7.1.3' apply false
}

allprojects {
    repositories {
        maven { url 'https://jitpack.io' }
        maven {
            url 'http://nexus.arashivision.com:9999/repository/maven-public/'
            allowInsecureProtocol true
            credentials {
                username = 'kevin.lieberman'
                password = 'xxxxx'
            }
        }
    }
}

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

and in my "other" build.gradle in the app folder:

plugins {
    id 'com.android.application'
}

android {
    compileSdk 32

    defaultConfig {
        applicationId "com.lieberland.insta360testing"
        minSdk 29
        targetSdk 32
        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
    }
}

dependencies {

    implementation 'androidx.appcompat:appcompat:1.5.1'
    implementation 'com.google.android.material:material:1.7.0'
    implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
    testImplementation 'junit:junit:4.13.2'
    implementation 'com.arashivision.sdk:sdkcamera:1.5.0'
    androidTestImplementation 'androidx.test.ext:junit:1.1.4'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.0'
}

and I get this error:

1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:checkDebugAarMetadata'.
> Could not resolve all dependencies for configuration ':app:debugRuntimeClasspath'.
  The project declares repositories, effectively ignoring the repositories you have declared in the settings.
  You can figure out how project repositories are declared by configuring your build to fail on project repositories.
  See https://docs.gradle.org/7.2/userguide/declaring_repositories.html#sub:fail_build_on_project_repositories for details.
   > Could not find com.arashivision.sdk:sdkcamera:1.5.0.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/com/arashivision/sdk/sdkcamera/1.5.0/sdkcamera-1.5.0.pom
       - https://repo.maven.apache.org/maven2/com/arashivision/sdk/sdkcamera/1.5.0/sdkcamera-1.5.0.pom
       - https://jitpack.io/com/arashivision/sdk/sdkcamera/1.5.0/sdkcamera-1.5.0.pom
     Required by:
         project :app

I suspect the pom file for the camera sdk never downloads. I am pretty sure my credentials are correct. Any other way to get the library I need? Or how can I fix this?

Tianweihaihaihai commented 1 year ago

pls update to 1.5.3. and ensure the internet connection is available

Tianweihaihaihai commented 1 year ago

pls update to 1.5.3. and ensure the internet connection is available