Ho problemi quando aggiungo achartengine-1.1.0.jar nel mio progetto. quando aggiungoAggiunta di una libreria Android-studio
compile file('libs.achartengine-1.1.0.jar')
in build.gradle, Gradle mostra il seguente messaggio:
Gradle: A problem occurred evaluating project ':NativeCharts'.
Cannot convert the provided notation to an object of type Dependency: /home/***/NativeChartsProject/NativeCharts/libs/achartengine-1.1.0.jar.
The following types/formats are supported:
- Instances of Dependency.
- Strings/CharSequences, e.g. 'org.gradle:gradle-core:1.0'.
- Maps, e.g. [group: 'org.gradle', name: 'gradle-core', version: '1.0'].
- FileCollections, e.g. files('some.jar', 'someOther.jar').
- Projects, e.g. project(':some:project:path').
- ClassPathNotation, e.g. gradleApi().
Comprehensive documentation on dependency notations is available in DSL reference for DependencyHandler type.
Grazie in anticipo. Fab.
ho cambiato il file in file e ora ho: Gradle: si è verificato un problema durante la configurazione del progetto ': NativeCharts'. > Impossibile risolvere tutte le dipendenze per la configurazione ': NativeCharts: classpath'. > Problemi con il ping del proprietario del blocco '640513271418860208' sulla porta: 50072 – Fabr9193