Android студия занимает 2-3 минуты, чтобы запустить приложение в эмулятор или устройство - PullRequest
0 голосов
/ 06 марта 2020

Я работаю над Android проектом, который имеет 50+ зависимостей в Gradle.

Я использую Android Studio 3.5.3 и эмулятор "Nexus 5_API_29 Android 10".

Когда я запускаю приложение в первый раз, установка и запуск приложения в эмуляторе занимает 2-3 секунды. Внесите изменения в код и попробуйте запустить приложение в течение 3-4 минут, для запуска приложения в эмуляторе потребуется 2-3 минуты (иногда 5 минут). Но если приложение запускается через 4-5 минут, оно работает нормально.

Inshort, Android студия тратит время на запуск приложения в эмуляторе или устройстве, если я запускаю приложение в течение 3-4 минут.

enter image description here

implementation "androidx.appcompat:appcompat:$appcompat"
implementation "androidx.constraintlayout:constraintlayout:$constraintLayout"
implementation "com.google.android.material:material:$material"
implementation 'androidx.vectordrawable:vectordrawable-animated:1.1.0'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'

testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.2.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'

implementation "com.google.code.gson:gson:$gson"
implementation "com.squareup.retrofit2:retrofit:$retrofit"
implementation "com.squareup.retrofit2:converter-gson:$retrofit"
implementation 'com.squareup.retrofit2:converter-scalars:2.1.0'
implementation 'com.squareup.okhttp3:logging-interceptor:3.9.0'

debugImplementation 'com.amitshekhar.android:debug-db:1.0.4'
//Butternife
implementation 'com.jakewharton:butterknife:10.0.0'
annotationProcessor 'com.jakewharton:butterknife-compiler:10.0.0'
//Facebook
implementation 'com.facebook.android:facebook-login:[5,6)'
//Google Sign in
implementation 'com.google.android.gms:play-services-auth:17.0.0'
//Glide image loading Lib.
implementation 'com.github.bumptech.glide:glide:4.10.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.10.0'

//Expandable recycler view
implementation 'com.thoughtbot:expandablerecyclerview:1.3'
//(QR Code Scanning)
implementation 'me.dm7.barcodescanner:zxing:1.9.13'
//RazorPay
implementation 'com.razorpay:checkout:1.5.1'
//Viewpager indicator
implementation 'me.relex:circleindicator:2.1.4'
//Intercom Lib
implementation 'io.intercom.android:intercom-sdk:6.+'
//Graph Lib
implementation 'com.github.PhilJay:MPAndroidChart:v3.1.0'
//FlipView animation Library
implementation 'eu.davidea:flipview:1.1.3'
// Fabric crashlytics
implementation('com.crashlytics.sdk.android:crashlytics:2.10.1@aar') {
    transitive = true
}

//PDF
implementation project(':android-pdf-viewer')

//Video Player
implementation project(':bettervideoplayer')

//YouTube Video API
implementation files('libs/YouTubeAndroidPlayerApi.jar')

//Onesignal
implementation 'com.onesignal:OneSignal:[3.11.2, 3.99.99]'

//Firebase Analytics
implementation 'com.google.firebase:firebase-core:17.2.2'
implementation 'com.google.firebase:firebase-analytics:17.2.2'
implementation 'com.google.firebase:firebase-inappmessaging-display:19.0.3'
implementation 'com.google.firebase:firebase-messaging:20.1.0'
//Firebase Performance Monitoring SDK
implementation 'com.google.firebase:firebase-perf:19.0.5'


//Room DB
implementation 'androidx.room:room-runtime:2.2.3'
annotationProcessor 'androidx.room:room-compiler:2.2.3'

//Paytm
implementation('com.paytm:pgplussdk:1.2.3') {
    transitive = true;
}

//Amplitude Analytics
implementation 'com.amplitude:android-sdk:2.23.2'

// View model
implementation "androidx.lifecycle:lifecycle-extensions:$lifecycle"

implementation "androidx.lifecycle:lifecycle-common-java8:$lifecycle"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"

implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.0"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.0"

//Circular imageview
implementation 'com.makeramen:roundedimageview:2.3.0'

//Cropper
implementation 'com.theartofdev.edmodo:android-image-cropper:2.8.+'

//FlexboxLayout
implementation 'com.google.android:flexbox:1.0.0'

//Event Calendar
implementation project(':eventcalenderlibrary')

//Circular progress
implementation project(path: ':circle_progress_library')

//Truecaller
implementation(name: "truesdk-0.7-releasePartner", ext: "aar")

implementation 'com.android.installreferrer:installreferrer:1.1.1'
implementation 'androidx.fragment:fragment-ktx:1.2.2'

//Epub
implementation project(':folioreader')
...