Error: Activity class {} does not exist

匿名 (未验证) 提交于 2019-12-03 00:53:01

问题:

My application launches well both on Nexus 7 and Nook Tablet, but doesn't start on Kindle Fire with the following error:

Error: Activity class {com.js.pathoflight/com.js.pathoflight.JSNativeActivity} does not exist. 

Here is my manifest complete:

 <?xml version="1.0" encoding="utf-8"?>  <manifest xmlns:android="http://schemas.android.com/apk/res/android"     package="com.js.pathoflight"     android:versionCode="3"     android:versionName="0.8.3">  <uses-sdk android:minSdkVersion="9" android:targetSdkVersion="18" />  <uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.WAKE_LOCK"/> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>  <application android:label="@string/app_name"      android:icon="@drawable/ic_launcher"     android:allowBackup="true"      android:hasCode="true" >      <activity android:name=".JSNativeActivity"             android:label="@string/app_name"             android:configChanges="orientation|keyboardHidden"             android:theme="@android:style/Theme.NoTitleBar.Fullscreen">          <meta-data android:name="android.app.lib_name"                 android:value="PathOfLight" />         <intent-filter>             <action android:name="android.intent.action.MAIN" />             <category android:name="android.intent.category.LAUNCHER" />         </intent-filter>      </activity>  </application> </manifest>  

It seems like a device issue, but I have another (similar) application which runs on the same device well. How can I solve it?

回答1:

The real problem was that there were another application with the same package name on device (I tried a sample and gave it my real app package name)! When I removed it everything became working right!



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!