簡體   English   中英

Android Studio:android.intent.category.LAUNCHER客戶端尚未准備好

[英]Android Studio: android.intent.category.LAUNCHER Client not ready yet

每當我嘗試在手機上運行我的應用程序時,都會收到此消息

它崩潰了。 我不知道如何解決它,我已經取消選中“即時運行”並安裝了ADB Idea,但還是沒有運氣。 有什么幫助嗎?

編輯(build.gradle):

apply plugin: 'com.android.application'

android {
    compileSdkVersion 26
    defaultConfig {
        applicationId "com.fretshot.ihc.sapp"
        minSdkVersion 22
        targetSdkVersion 22
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
        resValue "string", "google_maps_key", (project.findProperty("GOOGLE_MAPS_API_KEY") ?: "")
    }
    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:support-v4:26.1.0'
    implementation 'com.android.support:design:26.1.0'
    implementation 'com.android.support.constraint:constraint-layout:1.1.0'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.1'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
    implementation 'com.google.android.gms:play-services-maps:15.0.0'
    implementation 'com.google.android.gms:play-services-location:15.0.0'
    implementation 'com.ncorti:slidetoact:0.3.0'
}

您是否在AndroidManifest.xml中導出了啟動器活動? 看到您正在通過adb啟動它,則需要添加:

<activity
    android:name=".yourpackagename.YourActivity"
    android:exported="true"/>

為了使您的活動能夠進行adb發布。 帶有意圖過濾器的活動默認情況下被導出。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM