ارور compile
مدیریت گفتگو
این ارور رو بهم میده ولی پروژه کامپایل میشه و توی شبیه ساز اجرا میشه ولی وقتی میخوام خروجی رو گوشی تست بگیرم نصب نمیشه
Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
توی app چیزی به نام compile نیست.
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
defaultConfig {
applicationId "codecanyon.grocery"
minSdkVersion 15
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
//implementation 'com.android.support:support-v4:+'
implementation 'com.android.support:appcompat-v7:+'
implementation 'com.android.support.constraint:constraint-layout:1.0.0-beta4'
implementation 'com.android.support:design:+'
implementation 'com.android.support:cardview-v7:+'
implementation 'com.android.volley:volley:1.0.0'
implementation 'com.google.code.gson:gson:2.8.0'
implementation 'com.squareup.picasso:picasso:2.3.2'
implementation 'com.nineoldandroids:library:2.4.0'
implementation 'com.daimajia.slider:library:1.1.5@aar'
implementation 'com.github.bumptech.glide:glide:3.7.0'
implementation 'de.hdodenhof:circleimageview:2.1.0'
implementation 'com.squareup.okhttp3:okhttp:3.8.1'
implementation 'com.google.firebase:firebase-messaging:10.0.1'
implementation 'com.daimajia.swipelayout:library:1.2.0@aar'
implementation 'agency.tango.android:material-intro-screen:0.0.5'
implementation 'com.mohamadamin:persianmaterialdatetimepicker:1.2.1'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
}
// ADD THIS AT THE BOTTOM
apply plugin: 'com.google.gms.google-services'
پاسخها 4
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
maven {
url 'https://maven.google.com/'
name 'Google'
}
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.3'
classpath 'com.google.gms:google-services:3.1.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
maven {
url 'https://maven.google.com/'
name 'Google'
}
//maven { url "https://jitpack.io" }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
نظرات
فک میکنم مشکل استفاده از کتابخونه های قدیمی باشه که به احتمال زیاد هم مشکل firebase باشه :
implementation 'com.google.firebase:firebase-messaging:10.0.1'
که باید اپدیتیشون کنی به نظرم حل میشه مشکلت.
نظرات
نظرات
بالاخره متوجه شدم ارور از کجاس ولی الان نمیدنم چطوری باید جایگزین کنم
apply plugin: 'com.google.gms.google-services'
ارور از این خط بودش، ولی الان چطور باید فعالش کنم
چون نسخه نرم افزار با گردیل زیر3 سینگ شده بود مشکلی نداشت، اما بعد از آپدیت به نسخه 3.1.3 به این خط گیر میده...
ممنون میشم کسی کمکی کنه
نظرات
پاسخگویی و مشاهده پاسخ های این سوال تنها برای اعضای ویژه سایت امکان پذیر است .
چنانچه تمایل دارید به همه بخش ها دسترسی داشته باشید میتوانید از این بخش لایسنس این آموزش را خریداری نمایید .


نظرات