安卓:没有启动的活动找到了!之前工作找到了、工作

2023-09-12 22:19:52 作者:一只优蕥的猪

我有同样的问题大家报告,但就此开始发生突然。我的应用程序正在如预期,自动启动的主要活动。 但所有的突然它停止工作,我开始看到发现的否发射活动!消息。

这是我的清单:

 < XML版本=1.0编码=UTF-8&GT?;
<舱单的xmlns:机器人=htt​​p://schemas.android.com/apk/res/android
包=com.xitrica.android>
<使用-权限的Andr​​oid:名称=android.permission.INTERNET对/>
<使用-SDK安卓的minSdkVersion =8/>

<应用机器人:图标=@可绘制/图标机器人:标签=@字符串/ APP_NAME
    机器人:主题=@风格/ Theme.Transparent>
    <使用库机器人:名称=com.google.android.maps机器人:要求=真/>
    <活动机器人:名称=ElBusetonActivity机器人:标签=@字符串/ APP_NAME>
        <意向滤光器>
            <作用机器人:名称=android.intent.action.MAIN/>
            <类机器人:名称=android.intent.category.DEFAULT/>
            <类机器人:名称=andoid.intent.category.LAUNCHER/>
        &所述; /意图滤光器>
    < /活性GT;
    <活动机器人:名称=RouteInfoActivity>< /活性GT;
    <活动机器人:主题=@安卓风格/ Theme.Translucent.NoTitleBar
        机器人:名称=GetDirectionsActivity>< /活性GT;
    <活动机器人:主题=@安卓风格/ Theme.Dialog
        机器人:名称=PointProviderList>< /活性GT;
    < /用途>
< /舱单>
 

很抱歉,如果我没有正确发布此片段。这是我第一次发布问题。

在此先感谢。

解决方案

 <活动机器人:ElBusetonActivity名称=机器人:标签=@字符串/ APP_NAME>
 
iPhone迁移功能背后苹果的淡定和焦虑

试试这个,preFIX(。)上的活动名称 这里()是指包路径

I have the same problem everyone reports but this began happening suddenly. My app was working as expected, automatically launching the MAIN activity. But all of the sudden it stopped working and I started seeing the No Launcher activity found! message.

This is my Manifest:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.xitrica.android">
<uses-permission android:name="android.permission.INTERNET" />
<uses-sdk android:minSdkVersion="8" />

<application android:icon="@drawable/icon" android:label="@string/app_name"
    android:theme="@style/Theme.Transparent">
    <uses-library android:name="com.google.android.maps" android:required="true" />
    <activity android:name="ElBusetonActivity" android:label="@string/app_name">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.DEFAULT" />
            <category android:name="andoid.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
    <activity android:name="RouteInfoActivity"></activity>
    <activity android:theme="@android:style/Theme.Translucent.NoTitleBar"
        android:name="GetDirectionsActivity"></activity>
    <activity android:theme="@android:style/Theme.Dialog"
        android:name="PointProviderList"></activity>
    </application>
</manifest>

Sorry if I'm not posting this snippet correctly. It's the first time I ever post a question.

Thanks in advance.

解决方案

<activity android:name=".ElBusetonActivity" android:label="@string/app_name">

try this, prefix (".") on activity name here (.) refer to package path