App Android是否无法在物理设备上运行?

时间:2019-06-17 14:31:18

标签: android android-activity

在我尝试过该应用程序的所有模拟器上都可以正常工作(API 19和API 22),但在我的物理设备上,即实际的android智能手机(API 24)却不能。

查看错误:

  Error while executing: am start -n "evertongreeff.com.br.mediaescolarrecyclerview/evertongreeff.com.br.mediaescolarrecyclerview.view.SplashActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
  Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=evertongreeff.com.br.mediaescolarrecyclerview/.view.SplashActivity }
  Error type 3
  Error: Activity class {evertongreeff.com.br.mediaescolarrecyclerview/evertongreeff.com.br.mediaescolarrecyclerview.view.SplashActivity} does not exist.

  Error while Launching activity

PS:存在SplashActivity。

AndroidManifest.xml

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

<application
    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="evertongreeff.com.br.mediaescolarrecyclerview.activity.AdicionarActivity"
        android:screenOrientation="portrait"
        android:windowSoftInputMode="adjustPan|adjustNothing"></activity>
    <activity android:name="evertongreeff.com.br.mediaescolarrecyclerview.activity.MainActivity"
        android:screenOrientation="portrait"
        android:windowSoftInputMode="adjustPan|adjustNothing"></activity>
    <activity android:name="evertongreeff.com.br.mediaescolarrecyclerview.view.SplashActivity"
        android:screenOrientation="portrait">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

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

0 个答案:

没有答案