Я пытался перенести код своего приложения из jcenter в mavenCentral в студии Android.JAVA

Программисты JAVA общаются здесь
Ответить Пред. темаСлед. тема
Anonymous
 Я пытался перенести код своего приложения из jcenter в mavenCentral в студии Android.

Сообщение Anonymous »

Я пытался перенести код своего приложения из jcenter в mavenCentral, но когда я создавал выходные данные, отображалась эта ошибка. Я искал в Google и YouTube, но не нашел решения этой ошибки в студии Android.
Ошибка –

Код: Выделить всё

Execution failed for task ':app:preDebugBuild'.
> Could not resolve all files for configuration ':app:debugCompileClasspath'.
> Could not find com.theartofdev.edmodo:android-image-cropper:2.7.0.
Required by:
project :app
> Could not find com.nabinbhandari.android:permissions:3.8.
Required by:
project :app
> Could not find com.crystal:crystalrangeseekbar:1.1.3.
Required by:
project :app
> Could not find com.patrickpissurno:ripple-effect:1.3.1.
Required by:
project :app
> Could not find com.firebaseui:firebase-ui-firestore:4.0.1.
Required by:
project :app
> Could not find com.yuyakaido.android:card-stack-view:2.3.2.
Required by:
project :app
> Could not find link.fls:swipestack:0.3.0.
Required by:
project :app
> Could not find com.mindorks.android:placeholderview:1.0.3.
Required by:
project :app
> Could not find com.synnapps:carouselview:0.1.5.
Required by:
project :app
> Could not find com.ss.bannerslider:bannerslider:2.0.0.
Required by:
project :app
> Could not find :unspecified:.
Required by:
project :app > id.zelory:compressor:2.1.0
> Could not find com.daasuu:EasingInterpolator:1.0.0.
Required by:
project :app > com.sackcentury:shinebutton:0.2.0

Possible solution:
- Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html
Build.gradle -

Код: Выделить всё

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

buildscript {

repositories {
google()
maven {
url 'https://jitpack.io'
}
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.4.1'
classpath 'com.google.gms:google-services:4.2.0'

// NOTE: Do not place your application dependencies here;  they belong
// in the individual module build.gradle files
}

}

allprojects {
repositories {
google()
maven {
url 'https://jitpack.io'
}
mavenCentral()
}
}

task clean(type: Delete) {
delete rootProject.buildDir
}
Build.gradle(приложение) -

Код: Выделить всё

apply plugin: 'com.android.application'

android {
compileSdkVersion 28
defaultConfig {
applicationId "com.sunnwy.firedate"
minSdkVersion 16
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
android {
lintOptions {
checkReleaseBuilds false
abortOnError false
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation "com.google.firebase:firebase-core:16.0.1"
implementation 'com.google.firebase:firebase-database:16.0.1'
implementation 'com.google.firebase:firebase-auth:16.0.1'
implementation 'com.google.firebase:firebase-storage:16.0.1'
implementation 'com.google.firebase:firebase-firestore:17.0.1'
implementation 'com.google.firebase:firebase-ads:15.0.1'
implementation 'com.google.android.gms:play-services-auth:15.0.1'
implementation 'com.google.android.gms:play-services-location:15.0.1'
implementation 'com.android.support:recyclerview-v7:28.0.0'
implementation 'com.android.support:cardview-v7:28.0.0'
implementation 'com.android.support:multidex:1.0.3'
implementation 'de.hdodenhof:circleimageview:3.0.0'
implementation 'com.theartofdev.edmodo:android-image-cropper:2.7.0'
implementation 'com.squareup.picasso:picasso:2.71828'
implementation 'com.nabinbhandari.android:permissions:3.8'
implementation 'id.zelory:compressor:2.1.0'
implementation 'com.makeramen:roundedimageview:2.3.0'
implementation 'com.crystal:crystalrangeseekbar:1.1.3'
implementation 'com.patrickpissurno:ripple-effect:1.3.1'
implementation 'com.github.curioustechizen.android-ago:library:1.4.0'
implementation 'com.firebaseui:firebase-ui-firestore:4.0.1'
implementation "com.yuyakaido.android:card-stack-view:2.3.2"
implementation 'link.fls:swipestack:0.3.0'
implementation 'com.mindorks.android:placeholderview:1.0.3'
annotationProcessor 'com.mindorks.android:placeholderview-compiler:1.0.3'
implementation 'com.synnapps:carouselview:0.1.5'
implementation "com.squareup.okhttp3:okhttp:3.14.1"
implementation 'com.jakewharton.picasso:picasso2-okhttp3-downloader:1.1.0'
implementation 'com.ss.bannerslider:bannerslider:2.0.0'
implementation 'com.github.f0ris.sweetalert:library:1.5.6'
implementation 'com.sackcentury:shinebutton:0.2.0'
implementation 'org.greenrobot:eventbus:3.1.1'
implementation 'com.facebook.android:facebook-login:[5,6)'
implementation 'com.skyfishjy.ripplebackground:library:1.0.1'

}

apply plugin: 'com.google.gms.google-services'
Если кто-нибудь знает, как решить проблему, пожалуйста, сообщите мне

Подробнее здесь: https://stackoverflow.com/questions/723 ... droid-stud
Реклама
Ответить Пред. темаСлед. тема

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

  • Похожие темы
    Ответы
    Просмотры
    Последнее сообщение

Вернуться в «JAVA»