آموزش های این وب سایت به صورت رایگان در دسترس است. اطلاعات بیشتر
بروز خطا
   [message]
اشتراک در سوال
رای ها
[dataList]

ارور compile

Hassan94  7 سال پیش  7 سال پیش
0 0

این ارور رو بهم میده ولی پروژه کامپایل میشه و توی شبیه ساز اجرا میشه ولی وقتی میخوام خروجی رو گوشی تست بگیرم نصب نمیشه

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'
0 0
این خطا که شما گذاشتید به هیچ وجه مانع گرفتن خروجی برای شما نمیشه شما در تب Build  هیچ خطایی ندارید  (7 سال پیش)
0 0
درسته ولی این ارور نمیره (7 سال پیش)
0 0
در ضمن لایه ها رو هم سفید نشون میده (7 سال پیش)
 برای این سوال 4 پاسخ وجود دارد.
پاسخ به سوال 
Hassan94  7 سال پیش
0 0

// 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
}
0 0
اون سه خط اخر هم که با TestImplementation و androidTestImplementation شروع شده را هم تبدیل به implementation کن (7 سال پیش)
پاسخ به سوال 
Plumber  7 سال پیش
0 0

فک میکنم مشکل استفاده از کتابخونه های قدیمی باشه که به احتمال زیاد هم مشکل firebase باشه :

   implementation 'com.google.firebase:firebase-messaging:10.0.1'

که باید اپدیتیشون کنی به نظرم حل میشه مشکلت.

0 0
همه کتابخونه ها رو آپدیت کردم ولی باز ارور کامپیل نرفته (7 سال پیش)
پاسخ به سوال 
Hassan94  7 سال پیش
0 0

دوستان کسی همچین مشکلی تا به حال نداشته

0 0
ارور میگه کانفبگ کردن با کامپایل منسوخ شده و بجاش از implementation و api استفاده کنم، و تا پایان 2018 حذف میشه... من الان با کامپایل کانفیک نکردم، پس چرا همچین اروری میده... (7 سال پیش)
پاسخ به سوال 
Hassan94  7 سال پیش
0 0

بالاخره متوجه شدم ارور از کجاس ولی الان نمیدنم چطوری باید جایگزین کنم

apply plugin: 'com.google.gms.google-services'

ارور از این خط بودش، ولی الان چطور باید فعالش کنم

چون نسخه نرم افزار با گردیل زیر3 سینگ شده بود مشکلی نداشت، اما بعد از آپدیت به نسخه 3.1.3 به این خط گیر میده...

ممنون میشم کسی کمکی کنه


پاسخگویی و مشاهده پاسخ های این سوال تنها برای اعضای ویژه سایت امکان پذیر است .
چنانچه تمایل دارید به همه بخش ها دسترسی داشته باشید میتوانید از این بخش لایسنس این آموزش را خریداری نمایید .