مشکل در اینپورت سورس
سلام من یک سورس را اینپورت کردم و این 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

پاسخ ها ( 10 )
سلام
در نسخه جدید اندروید استودیو، تغییراتی به وجود اومده:
برای رفع خطاها، به فایل Build.gradle سورس مراجعه کنید و از عبارات جدیدی که در بالا گفتم، به جای عبارات قدیمی استفاده کنید.
موفق باشید.
هنوز این خطا ها رو میده
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
این کد های همون صفحه ای که گفتید
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'خط 41 رو هنوز تغییر ندادید
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
این را امتحان کنید:
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'این خطا رو دوباره داد
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
فایل Build.gradle اصلی رو پیوست کنید
http://s9.picofile.com/file/8354155800/MyFm.rar.html
ظاهرا همه چی درست است، ولی خطا همچنان پابرجاست …
حالا باید چیکار کنم
شما کدام سورس برای رادیو آنلاین ندارید
سورس زیر رو قبلا گذاشته شده، که دوستان اطلاع دادند رمز ورود به مدیریت پیدا نمیشه
دانلود سورس برنامه Online Radio – اندروید
یه سورس دیگه ای هم موجوده، که میزارم داخل سایت
این سورس مولتی رادیو هست و پنل داره من رادیو دارم و برایش میخواهم یک اپ بزنم سورس باید سینکل باشه