Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error: Activity class {} does not exist

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?

like image 696
deko Avatar asked Feb 13 '23 11:02

deko


1 Answers

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!

like image 164
deko Avatar answered Feb 16 '23 03:02

deko