مشکل در اینپورت سورس

سوال

سلام من یک سورس را اینپورت کردم و این 4 خطا را میدهد ممنون میشم راهنمایی کنید

WARNING: 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
Affected Modules: RadioLibrary, app


WARNING: Configuration 'testCompile' is obsolete and has been replaced with 'testImplementation'.
It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
Affected Modules: app


WARNING: Configuration 'androidTestCompile' is obsolete and has been replaced with 'androidTestImplementation'.
It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
Affected Modules: app

 

در حال بررسی 0
2019-03-03T23:26:30+03:30 10 پاسخ کاربر تازه 0

پاسخ ها ( 10 )

    0
    2019-03-04T18:09:52+03:30

    سلام

    در نسخه جدید اندروید استودیو، تغییراتی به وجود اومده:

    • در نسخه قدیم برای اضافه کردن یک کتاب از compile استفاده میشده؛ حالا برای اضافه کردن کتاب باید از implementation استفاده کنید.
    • همچنین باید بجای testImplementation استفاده کنید.
    • و به جای androidTestCompile از androidTestImplementation استفاده کنید.

    برای رفع خطاها، به فایل Build.gradle سورس مراجعه کنید و از عبارات جدیدی که در بالا گفتم، به جای عبارات قدیمی استفاده کنید.

    موفق باشید.

    0
    2019-03-04T20:32:57+03:30

    هنوز این خطا ها رو میده

    WARNING: 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
    Affected Modules: app

    WARNING: Configuration ‘testCompile’ is obsolete and has been replaced with ‘testImplementation’.
    It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
    Affected Modules: app

    0
    2019-03-04T20:34:37+03:30

    این کد های همون صفحه ای که گفتید

    apply plugin: 'com.android.application'
    
    android {
        compileSdkVersion 26
        buildToolsVersion "28.0.3"
        defaultConfig {
            applicationId "af.josh.arman.radio"
            minSdkVersion 16
            targetSdkVersion 26
            versionCode 1
            versionName "1.0"
    
            manifestPlaceholders = [manifestApplicationId: "${applicationId}",
                                    onesignal_app_id: "b374d263-e4e1-4f35-b39e-6299aee4316d",
                                    onesignal_google_project_number: "3520309722"]
    
            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'])
        androidTestImplementation ('com.android.support.test.espresso:espresso-core:2.2.2', {
            exclude group: 'com.android.support', module: 'support-annotations'
        })
        implementation 'com.android.support:appcompat-v7:26.1.0'
        implementation 'com.android.support.constraint:constraint-layout:1.0.2'
        implementation 'com.android.support:design:26.1.0'
        implementation 'com.onesignal:OneSignal:3.+@aar'
        implementation 'com.google.android.gms:play-services-ads:11.8.0'
        implementation 'com.google.android.gms:play-services-gcm:11.8.0'
        implementation 'uk.co.chrisjenx:calligraphy:2.3.0'
        implementation 'com.kailashdabhi:om-recorder:1.1.5'
        implementation 'com.shawnlin:number-picker:2.4.4'
        testCompile 'junit:junit:4.12'
        implementation project(path: ':RadioLibrary')
    }
    apply plugin: 'com.google.gms.google-services'
    0
    2019-03-04T20:51:15+03:30

    خط 41 رو هنوز تغییر ندادید

    0
    2019-03-04T21:25:24+03:30

    WARNING: 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
    Affected Modules: app

    0
    2019-03-04T23:18:42+03:30

    این را امتحان کنید:

    apply plugin: 'com.android.application'
    
    android {
        compileSdkVersion 26
        buildToolsVersion "28.0.3"
        defaultConfig {
            applicationId "af.josh.arman.radio"
            minSdkVersion 16
            targetSdkVersion 26
            versionCode 1
            versionName "1.0"
    
            manifestPlaceholders = [manifestApplicationId: "${applicationId}",
                                    onesignal_app_id: "b374d263-e4e1-4f35-b39e-6299aee4316d",
                                    onesignal_google_project_number: "3520309722"]
    
            testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
        }
        buildTypes {
            release {
                minifyEnabled false
                proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            }
        }
    }
    
    dependencies {
        implementation fileTree(include: ['*.jar'], dir: 'libs')
        implementation 'com.android.support:appcompat-v7:26.1.0'
        implementation 'com.android.support.constraint:constraint-layout:1.0.2'
        implementation 'com.android.support:design:26.1.0'
        implementation 'com.onesignal:OneSignal:3.+@aar'
        implementation 'com.google.android.gms:play-services-ads:11.8.0'
        implementation 'com.google.android.gms:play-services-gcm:11.8.0'
        implementation 'uk.co.chrisjenx:calligraphy:2.3.0'
        implementation 'com.kailashdabhi:om-recorder:1.1.5'
        implementation 'com.shawnlin:number-picker:2.4.4'
        testImplementation 'junit:junit:4.12'
        implementation project(path: ':RadioLibrary')
    }
    apply plugin: 'com.google.gms.google-services'

     

    0
    2019-03-04T23:50:19+03:30
    این پاسخ ویرایش شد.

    این خطا رو دوباره داد

    WARNING: 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
    Affected Modules: app

    0
    2019-03-06T00:19:42+03:30

    حالا باید چیکار کنم

    شما کدام سورس برای رادیو آنلاین ندارید

    0
    2019-03-06T18:48:36+03:30

    این سورس مولتی رادیو هست و پنل داره من رادیو دارم و برایش میخواهم یک اپ بزنم سورس باید سینکل باشه

ارسال یک پاسخ