5
當我在項目中添加achartengine-1.1.0.jar時遇到了問題。 當我在的build.gradle添加添加庫Android-studio
compile file('libs.achartengine-1.1.0.jar')
,搖籃顯示以下消息:
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.
預先感謝。 Fab。
我將文件更改爲文件,現在我有: Gradle:配置項目':NativeCharts'時發生問題。 >無法解析配置的所有依賴關係:NativeCharts:classpath'。 >在端口上ping「640513271418860208」的擁有者的問題:50072 – Fabr9193