Android 模拟器可以';t荷载“;Libbles“模拟”;司机

Android 模拟器可以';t荷载“;Libbles“模拟”;司机,android,android-studio,android-intent,Android,Android Studio,Android Intent,我正在使用设置FirebaseUI的过程中,但突然出现了一个错误,似乎无法找到解决方案。我很确定这与我的gradle有关,因为我尝试过在Java文件中注释更改,使用手机而不是AVD,以及其他模拟器,但都无济于事。我已经在运行控制台、清单和gradles中包含了我得到的内容。如果你需要更多的信息,请告诉我。谢谢 编辑:对于那些有相同问题的人,我想我通过在API Q emulator上更新Google Play服务(你必须先登录Google Play)来解决了这个问题,然后我在应用程序级别的gra

我正在使用设置
FirebaseUI
的过程中,但突然出现了一个错误,似乎无法找到解决方案。我很确定这与我的gradle有关,因为我尝试过在Java文件中注释更改,使用手机而不是AVD,以及其他模拟器,但都无济于事。我已经在运行控制台、清单和gradles中包含了我得到的内容。如果你需要更多的信息,请告诉我。谢谢


编辑:对于那些有相同问题的人,我想我通过在API Q emulator上更新Google Play服务(你必须先登录Google Play)来解决了这个问题,然后我在应用程序级别的gradle中添加了以下内容:

android {
     ...
     compileOptions {
         ...
         sourceCompatibility = 1.8
         targetCompatibility = 1.8
         ...
     }
     ...
}
我不知道它是如何工作的,但我希望它对您也有帮助。


运行(仅限冲突)

运行(满)

清单

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.litlocal">

    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
    <uses-permission android:name="android.permission.INTERNET" />

    <application
        android:name=".MyApplication"
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:supportsRtl="true"
        android:theme="@style/AppTheme">

        <activity
            android:name=".MainActivity"
            android:label="LitLocal">

            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

        <activity
            android:name=".CreateEventActivity"
            android:label="@string/create_event_activity_name"/>

        <activity
            android:name=".SetEventLocationActivity"
            android:label="@string/set_event_location_activity_name"/>

        <activity
            android:name=".LoginActivity"
            android:label="@string/login_activity_name"/>

    </application>

</manifest>
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories {
        google()
        jcenter()

    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.5.0'
        classpath 'com.google.gms:google-services:4.3.2'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        google()
        jcenter()
        mavenCentral()
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}
等级(应用程序)

这对我很有用:

android {
     ...
     compileOptions {
         ...
         sourceCompatibility = 1.8
         targetCompatibility = 1.8
         ...
     }
     ...
}

你有没有找到解决办法?有类似的问题,我正在使用AWS和解析服务器,请检查我的编辑
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories {
        google()
        jcenter()

    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.5.0'
        classpath 'com.google.gms:google-services:4.3.2'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        google()
        jcenter()
        mavenCentral()
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}
apply plugin: 'com.android.application'

android {
    compileSdkVersion 28
    defaultConfig {
        applicationId "com.example.litlocal"
        minSdkVersion 22
        targetSdkVersion 28
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
        resConfigs "en"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }
    compileOptions {
        /*sourceCompatibility = 1.8
        targetCompatibility = 1.8*/
    }
}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])

    implementation 'androidx.appcompat:appcompat:1.0.2'
    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'

    implementation 'com.mapbox.mapboxsdk:mapbox-android-sdk:8.2.1'
    implementation 'com.mapbox.mapboxsdk:mapbox-android-plugin-places-v8:0.9.0'

    implementation 'com.google.firebase:firebase-analytics:17.2.0'
    implementation 'com.google.firebase:firebase-auth:19.0.0'
    implementation 'com.firebaseui:firebase-ui-auth:4.1.0'
    implementation 'com.google.firebase:firebase-firestore:21.0.0'
    //implementation 'com.firebaseui:firebase-ui-database:5.1.0'

    implementation 'com.google.android.gms:play-services-auth:17.0.0'

    // Tentative for login
    //implementation 'com.squareup.picasso:picasso:2.71828'

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

apply plugin: 'com.google.gms.google-services'
android {
     ...
     compileOptions {
         ...
         sourceCompatibility = 1.8
         targetCompatibility = 1.8
         ...
     }
     ...
}