私はライブラリを作成し、プロジェクトにgradle依存関係を設定しようとしました。このサイトのレッスンで作成されました:http://inthecheesefactory.com/blog/how-to-upload-library-to-jcenter-maven-central-as-dependency/en
すべてがうまくいって、サイトに登録され、リポジトリを作成し、作成し、保存しました。しかし、彼がプロジェクトのファイルに移動したときは間違いだった。
は、下のスクリーンショットです:
バージョンがサイトを通じて自分自身を作成し
マイプロジェクトのGradleファイル:ライブラリをグラデーションに追加しよう
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.5.0'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.4'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
// Plugin used to upload authenticated files to BinTray through Gradle
plugins {
id "com.jfrog.bintray" version "1.5"
}
allprojects {
repositories {
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
マイライブラリGradleのファイル:
apply plugin: 'com.android.library'
ext {
bintrayRepo = 'maven'
bintrayName = 'AnimLib'
publishedGroupId = 'diplom.itis.animationlib'
libraryName = 'animlib'
artifact = 'animlib'
libraryDescription = ''
siteUrl = 'https://github.com/metalink94/AnimationLib'
gitUrl = 'https://github.com/metalink94/AnimationLib.git'
libraryVersion = '0.9.0'
developerId = 'metalink94'
developerName = 'Denis'
developerEmail = '[email protected]'
licenseName = 'The Apache Software License, Version 2.0'
licenseUrl = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
allLicenses = ["Apache-2.0"]
}
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
defaultConfig {
minSdkVersion 14
targetSdkVersion 23
versionCode 1
versionName "1.0"
group = 'diplom.itis.animationlib' // Change this to match your package name
version = '0.9.0' // Change this to match your version number
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.2.0'
apply plugin: 'com.jfrog.bintray'
apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'com.android.library'
}
apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/installv1.gradle'
apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/bintrayv1.gradle'
マイアプリモジュールGradleのファイル:
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
defaultConfig {
applicationId "diplom.itis.animationlib"
minSdkVersion 14
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.0.1'
compile 'com.android.support:recyclerview-v7:23.0.1'
compile 'com.github.clans:fab:1.6.1'
compile 'com.jakewharton:butterknife:7.0.1'
compile 'com.github.wangjiegulu:AndroidInject:1.0.6'
compile 'com.github.bumptech.glide:glide:3.6.1'
compile 'com.alexvasilkov:android-commons:1.2.4'
compile 'diplom.itis.animationlib:animlib:0.9.0'
//compile project(':animlib')
}
誰かが助けてください、私は間違いをどこに教えてください?
UPDATE
私は、あなたが行っているプロセスが、私はスクリーンショットを投稿します、あなたはまだ2つのことを行うことができ、正しい
私は私の質問を更新し、私はあなたがBintray上の0.9.0のライブラリを開いて、「ファイル」タブに行く@metalink私のパッケージ – metalink
left..in下部に下線ものを見つけることができない、フォルダに移動し、あなたは ".pom"拡張子のファイルを見つけることができますか? –