最近,当我尝试使用Eclipse IDE运行我的android应用程序时,就开始遇到此错误,已经查看了其他解决方案,但没有找到解决我的问题的方法。下面是错误日志和清单文件。

[2015-02-11 10:18:28 - PapiroSmart] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.prologica.papirosmart/.SplashScreenActivity }
[2015-02-11 10:18:28 - PapiroSmart] ActivityManager: Error type 3
[2015-02-11 10:18:28 - PapiroSmart] ActivityManager: Error: Activity class {com.prologica.papirosmart/com.prologica.papirosmart.SplashScreenActivity} does not exist.


清单文件

    <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.prologica.papirosmart"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk
        android:minSdkVersion="11"
        android:targetSdkVersion="18" />

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

    <!-- Accessing camera hardware -->
    <uses-feature android:name="android.hardware.camera" />

    <!-- Access permission to Android Folders -->
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

    <!-- Access permission to manage network conections -->
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" >
    </uses-permission>

    <!-- Wi-Fi Permissions -->
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" >
    </uses-permission>
    <uses-permission android:name="android.permission.UPDATE_DEVICE_STATS" >
    </uses-permission>
    <uses-permission android:name="android.permission.CHANGE_WIFI_STATE" >
    </uses-permission>

    <application
        android:name=".app.AppController"
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/Theme.Papirosmart" >
        <activity
            android:name=".cliente.LoginActivity"
            android:label="@string/app_name"
            android:screenOrientation="portrait" >
        </activity>
        <activity
            android:name=".cliente.MainActivity"
            android:label="@string/app_name"
            android:parentActivityName="cliente.LoginActivity"
            android:screenOrientation="portrait" >
            <meta-data
                android:name="android.support.PARENT_ACTIVITY"
                android:value="cliente.LoginActivity" />
        </activity>
        <activity
            android:name=".cliente.ConfigActivity"
            android:label="@string/app_name"
            android:parentActivityName="cliente.MainActivity"
            android:screenOrientation="portrait" >
            <meta-data
                android:name="android.support.PARENT_ACTIVITY"
                android:value="cliente.MainActivity" />
        </activity>
        <activity
            android:name=".SplashScreenActivity"
            android:label="@string/app_name"
            android:screenOrientation="portrait" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity
            android:name=".cliente.FileChooserActivity"
            android:label="@string/app_name"
            android:parentActivityName="cliente.MainActivity" >
            <meta-data
                android:name="android.support.PARENT_ACTIVITY"
                android:value="cliente.MainActivity" />
        </activity>

        <activity android:name="eu.janmuller.android.simplecropimage.CropImage" />

         <provider
            android:name="InternalStorageContentProvider"
            android:authorities="eu.janmuller.android.simplecropimage.CropImage"
            android:exported="true" />

        <receiver android:name=".app.ConnectionReceiver" >
            <intent-filter>
                <action android:name="android.net.conn.CONNECTIVITY_CHANGE" />
                <action android:name="android.net.wifi.WIFI_STATE_CHANGED" />
            </intent-filter>
        </receiver>

        <service android:name=".app.FileUploaderService" >
        </service>

        <receiver android:name=".app.FileUploaderReceiver" >
        </receiver>

        <service android:name=".app.SynchronizeService" >
        </service>
    </application>

</manifest>

最佳答案

它说com.prologica.papirosmart.SplashScreenActivity does not exists

因此,请使用SplashScreenActivity存在的特定程序包名称。如果SplashScreenActivity位于a.b.c软件包中,则保持顺从状态。而不是将特定于软件包的详细信息与SplashScreenActivity一起使用。

07-24 22:13