jibon57 / nativescript-mediafilepicker

A complete file picker solution for NativeScript
Apache License 2.0
51 stars 36 forks source link

Gradle build fails, can't resolve all artifacts #104

Closed HumanRupert closed 4 years ago

HumanRupert commented 4 years ago

Describe the bug Gradle build fails after adding the plugin, using NativeScript-Vue.

To Reproduce Add the plugin to a NS-Vue project.

Expected behavior Finalize build successfully.

NativeScript Info(please run tns info):

√ Getting NativeScript components versions information...
√ Component nativescript has 6.4.1 version and is up to date.
√ Component tns-core-modules has 6.4.2 version and is up to date.
‼ Update available for component tns-android. Your current version is 6.0.0 and the latest available version is 6.4.1.
‼ Update available for component tns-ios. Your current version is 6.0.1 and the latest available version is 6.4.2.

Sample Code(please provide minimum code to reproduce problem): https://github.com/nativescript-vue/nativescript-vue

Additional context I'm getting this error:

FAILURE: Build failed with an exception.

* Where:
Build file 'C:\Users\Hp\Documents\GitHub\ayneh-mobile-app\platforms\android\app\build.gradle' line: 534

* What went wrong:
A problem occurred configuring project ':app'.
> Could not resolve all artifacts for configuration ':app:debugRuntimeClasspath'.
   > Could not find vectordrawable-animated.jar (androidx.vectordrawable:vectordrawable-animated:1.1.0-beta01).
     Searched in the following locations:
         https://dl.google.com/dl/android/maven2/androidx/vectordrawable/vectordrawable-animated/1.1.0-beta01/vectordrawable-animated-1.1.0-beta01.jar
   > Could not find fragment.jar (androidx.fragment:fragment:1.1.0-alpha08).
     Searched in the following locations:
         https://dl.google.com/dl/android/maven2/androidx/fragment/fragment/1.1.0-alpha08/fragment-1.1.0-alpha08.jar

build.gradle:

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {

    repositories {
        google()
        jcenter()
        mavenCentral()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.4.1'
    }
}

allprojects {
    repositories {
        google()
        jcenter()
        mavenCentral()
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}
jibon57 commented 4 years ago

This isn't related with this plugin.

HumanRupert commented 4 years ago

Hi @jibon57 and thank you for your response. Yes, I didn't find vectordrawable-animated in your plugin's dependencies, but when I remove nativescript-mediafilepicker, build happens smoothly. I'm relatively new to Gradle and would appreciate your help :)