Leonardo Pizzoni
Leonardo Pizzoni

Reputation: 15

Apportable conversion VerdeActivity error

Hi all and thanks in advance,

i'm new with apportable and i'm trying to port my iOS app. I can build the app with no error but when i try to "load"(apportable load) or "debug" (apportable debug) on device or emulatior i recieve this message ".VerdeActivity class does not exists".

i have read this question too but i'm having the same problem also after the modifications.

Can anyone help me?

Here is the manifest

<?xml version="1.0" encoding="utf-8"?>
<!-- BEGIN_INCLUDE(manifest) -->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
          package="Lallo"
          android:sharedUserId="Lallo"
          android:installLocation="auto"
          android:versionCode="1373630001"
          android:versionName="1.1.1">
    <supports-gl-texture android:name="GL_OES_compressed_ETC1_RGB8_texture" />
    <uses-sdk android:minSdkVersion="8" android:targetSdkVersion="17" />
    <uses-permission android:name="android.permission.INTERNET" />
    <supports-screens android:resizeable="true" android:normalScreens="true" android:largeScreens="true" android:smallScreens="false"/>
    <application android:label="@string/app_name"
                 android:name="com.apportable.app.VerdeApplication"
                 android:hasCode="true"
                 android:icon="@drawable/icon"
                 android:theme="@style/FullScreenActivity"
                 android:debuggable="true"
                 android:largeHeap="false"
                 android:hardwareAccelerated="true">
        <meta-data android:name="android.app.libs" android:value="v cxx System objc ffi pthread_workqueue dispatch Foundation BridgeKit OpenAL verde" />
        <meta-data android:name="android.app.lib_name" android:value="verde" />
        <meta-data android:name="android.app_name" android:value="Lallo" />
        <meta-data android:name="apportable.splash_screen_type" android:value="letterbox" />
        <meta-data android:name="apportable.orientation" android:value="landscape" />
        <meta-data android:name="apportable.opengles2" android:value="true" />
        <meta-data android:name="apportable.opengles.fast_color" android:value="true" />
        <activity android:name="com.apportable.activity.VerdeActivity"
                  android:configChanges="mcc|mnc|locale|touchscreen|keyboard|keyboardHidden|navigation|screenLayout|fontScale|uiMode|orientation|screenSize|smallestScreenSize"
                  android:label="@string/app_name"
                  android:screenOrientation="landscape"
                  android:windowSoftInputMode="adjustPan"
                  android:launchMode="singleTask">
            <intent-filter>
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />
                <data android:scheme="fb361458087289348"/>
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <service android:enabled="true" android:name="com.apportable.activity.GdbServerService"
            android:label="@string/app_name" android:icon="@drawable/icon">
            <intent-filter >
                <action android:name="Lallo.GdbServerService" />
            </intent-filter>
        </service>
    </application>
</manifest>

Here is the complete error message

3052 KB/s (33870847 bytes in 10.834s)
    pkg: /data/local/tmp/Lallo-debug.apk
Failure [INSTALL_FAILED_INVALID_APK]
Starting: Intent { cmp=Lallo/com.apportable.activity.VerdeActivity (has extras) }
Error type 3
Error: Activity class {Lallo/com.apportable.activity.VerdeActivity} does not exist.

Upvotes: 1

Views: 1585

Answers (2)

Mathew Frank
Mathew Frank

Reputation: 766

An alterative reason for this error:

When running apportable for the first time, it asks which version of OpenGS ES (ES1 or ES2).
If you answer this wrong then you will get this error.

In my case I didn't realise the game I was working on still had the old version of cocos2d in it - uses ES1.

Hope this helps somebody else. I spent most of a day on this issue thinking there was an issue with my phone...

Upvotes: 0

Zac Bowling
Zac Bowling

Reputation: 6588

your package name is just "Lallo". You need a package name with dots in there. Usually a fully qualified reverse DNS name of your company with the package name.

For example:

com.apportable.Spin

You can change this in your .approj/configuration.json file.

Hope that helps.

Upvotes: 1

Related Questions