首页 > 解决方案 > 我的模拟器启动但它不运行我的应用程序

问题描述

您好,我正在一个应用程序中工作。我在 Android Studio 中安装了两个模拟器,我正在使用其中一个模拟器插入我的数据(关于应用程序)。当我运行我的应用程序时,它启动但不运行我的应用程序。我还去了我没有找到 adb 文件夹的应用程序目录......我应该怎么做才能解决这个问题。

这是我的构建 gradle 文件

plugins {
    id 'com.android.application'
    id 'com.google.gms.google-services'
}

android {
    compileSdkVersion 30
    buildToolsVersion "30.0.2"

    defaultConfig {
        applicationId "com.example.connectsocialmediaapp"
        manifestPlaceholders = [appAuthRedirectScheme: 'com.redirectScheme.comm']
        minSdkVersion 22
        targetSdkVersion 30
        versionCode 1
        versionName "1.0"

        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
}

dependencies {

    implementation 'androidx.appcompat:appcompat:1.1.0'

    implementation 'com.google.android.material:material:1.1.0'
    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
    implementation 'androidx.appcompat:appcompat:1.3.0-alpha02'
    implementation 'com.google.firebase:firebase-auth:19.2.0'
    implementation 'com.google.firebase:firebase-storage:19.1.1'
    implementation 'com.google.firebase:firebase-firestore:21.4.0'
    implementation 'androidx.legacy:legacy-support-v4:1.0.0'
    testImplementation 'junit:junit:4.+'
    androidTestImplementation 'androidx.test.ext:junit:1.1.1'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
    implementation 'de.hdodenhof:circleimageview:3.0.0'

    implementation 'com.rom4ek:arcnavigationview:2.0.0'
    implementation 'com.github.bumptech.glide:glide:4.12.0'
}

标签: javaandroidandroid-studioandroid-emulatoradb

解决方案


推荐阅读