Apportable conversion VerdeActivity error - android

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.

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.

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...

Related

re. Android) run an app to AndoridStudio or when you tried to install the apk app files are not visible

After Facebook Login connect, Run app in AndroidStudio, program execution is going with device, but the file will are not be visible. I do not know why this is the case happens.
I found a solution on the Internet. but I could not apply this solution in AndroidStudio here.
Has anyone experienced the same thing ? please tell me advice. thanks
have a problem with my AndroidManifest.xml file?
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.facebooktest.test.facebooktest">
<application
android:allowBackup="true"
android:icon="#mipmap/ic_launcher"
android:label="#string/app_name"
android:supportsRtl="true"
android:theme="#style/AppTheme">
<activity
android:name=".MainActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="#string/fb_login_protocol_scheme" />
</intent-filter>
</activity>
<meta-data
android:name="com.facebook.sdk.ApplicationId"
android:value="#string/facebook_app_id" />
<activity
android:name="com.facebook.FacebookActivity"
android:configChanges="keyboard|keyboardHidden|screenLayout|screenSize|orientation"
android:label="#string/app_name"
android:theme="#android:style/Theme.Translucent.NoTitleBar" />
</application>
<uses-permission android:name="android.permission.INTERNET" />
</manifest>
please read over your question ask i have no idea what your talking about , and why am seeing your manifest if your issue file not found
If its about building apk
goto the build menu click build apk , it the same menu used to rebuild app -- clean app

Error parsing the package

This error keeps comes on my phone but it did not come before,I saw all the stack overflow methods but non of them could help me.
I get this error when I test the app from android studio to my phone.I tried on other phones too but still the problem exist.
This is my manifest:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="my.patel.pritesh.smstimer">
<uses-permission android:name="android.permission.SEND_SMS" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<application
android:allowBackup="true"
android:icon="#drawable/sms_timer"
android:label="#string/app_name"
android:supportsRtl="true"
android:theme="#style/AppTheme">
<meta-data
android:name="com.google.android.gms.version"
android:value="#integer/google_play_services_version" />
<activity
android:name=".Time_Picker"
android:theme="#style/AppTheme.NoActionBar" />
<receiver
android:name=".MyReceiver"
android:enabled="true"
android:excludeFromRecents="true"
android:exported="true"
android:process="remote"
android:taskAffinity="">
<intent-filter>
<action android:name="SEND" />
</intent-filter>
</receiver>
<receiver
android:name=".NotificationReciever"
android:enabled="true"
android:exported="true">
<intent-filter>
<action android:name="notification" />
</intent-filter>
</receiver>
<receiver
android:name=".deliveryReciever"
android:enabled="true"
android:exported="true">
<intent-filter>
<action android:name="notification_delivered" />
</intent-filter>
</receiver>
<activity android:name=".sms_list">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".sms_review" />
<service
android:name=".alarmService"
android:enabled="true"
android:exported="true"></service>
</application>
</manifest>
This error comes in the run tab:
Unexpected error while executing: am start -n "my.patel.pritesh.smstimer/my.patel.pritesh.smstimer.sms_list" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Error while Launching activity
Main tag of manifest file must be manifest. Instead of xml tag, write something like:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.dummy"
android:versionCode="100"
android:versionName="1.0.0" >
<uses-permission android:name="android.permission.SEND_SMS" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<application
android:allowBackup="true"
android:icon="#drawable/sms_timer"
android:label="#string/app_name"
android:supportsRtl="true"
android:theme="#style/AppTheme">
...
</application>
</manifest>
As you are using Android Studio, I believe that you are likely have the problem mentioned in this question, and as mentioned here in the answer this error happens when you change the build version for your project (like downgrading or upgrading):
I've been working on this same exact problem for the last 8
hours...you've had no issues after rolling back from 2.0 to 1.5.1?
I've noticed that, even with the error, running the app works fine
sometimes.
so you have to make sure that there is no problem with the new release you are using, then you have to clean and rebuild your project again like mentioned here.
Or you can use the following hint from this answer:
Remove the .idea folder and gradle folder, then click button sync
project with gradle gradle files, after this process finished, you are
able to run your app as normal.

This app is incompatible with your device after testing on the same device?

I have successfully converted my game that I made with SpriteBuilder to a working Android version. When I run apportable load the app loads up onto my Moto G and runs as desired. Since then I have submitted my game to the Google Play Store. However when I visit my app page on my Moto G I cannot install the app onto my phone and I am greeted with the message "This app is incompatible with your device".
This is strange as I tested the app on my Moto G and it was working as desired. Please can someone shed some light onto why this may be occurring. I have attached my AndroidManifest.XML for your reference.
<?xml version="1.0" encoding="utf-8"?>
<!-- BEGIN_INCLUDE(manifest) -->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.jgapplications.FW"
android:sharedUserId="com.jgapplications.FW"
android:installLocation="auto"
android:versionCode="1394245849"
android:versionName="1.0">
<supports-gl-texture android:name="GL_OES_compressed_ETC1_RGB8_texture" />
<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="17" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<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="false"
android:largeHeap="false"
android:hardwareAccelerated="false"
> <meta-data android:name="android.app.libs" android:value="v cxx System icu CoreFoundation CommonCrypto crypto_1_01f ssl_1_01f Security SystemConfiguration CFNetwork Foundation freetype CoreGraphics BridgeKit OpenAL ffi CoreText CoreAudio AudioFile AudioUnit AudioToolbox verde" />
<meta-data android:name="android.app.lib_name" android:value="verde" />
<meta-data android:name="android.app_name" android:value="Flappy Wings" />
<meta-data android:name="apportable.splash_screen_type" android:value="letterbox" />
<meta-data android:name="apportable.orientation" android:value="portrait" />
<meta-data android:name="apportable.opengles2" android:value="true" />
<meta-data android:name="apportable.opengles.fast_color" android:value="true" />
<meta-data android:name="apportable.abi_list" android:value="" />
<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="portrait"
android:windowSoftInputMode="adjustPan"
android:launchMode="singleTask">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.net.conn.CONNECTIVITY_CHANGE"/>
</intent-filter>
</activity>
<service android:name="com.apportable.media.AudioManagerService" android:exported="false" />
<activity
android:label="#string/app_name"
android:name="com.facebook.LoginActivity"
android:theme= "#android:style/Theme.Translucent.NoTitleBar.Fullscreen" />
</application>
</manifest>
<!-- END_INCLUDE(manifest) -->
be sure that prior development builds are uninstalled
remember the android:required="false", if given
eg:
App is incompatible with all devices after publishing to the Market but same was working when moved directly to the device
more:
http://developer.android.com/guide/topics/manifest/uses-feature-element.html
min sdk version and current android version should be compatible
ressources
eg My app does not appear in the android market of my Samsung Galaxy S phone
i hope you could find something!
first clear playstore data from Settings > Application Manager > All > Google Play Store > Clear data. and than check it will solve your problem

ERROR: AndroidManifest.xml is corrupt when upload APK

I spent many hours searching answer to my question, but unfortunately didn't found it.
I have read about similar questions, but there is no answer for me.
(Error with Uploading APK to Google Play)
(Error message I got when I went to upload to the playstore) and so on.
And this is my problem:
When i upload my Apk to Google Play i have this error:
Upload failed
Your APK cannot be analyzed using 'aapt dump badging'. Error output:
Failed to run aapt dump badging:
W/ResourceType( 5477): Bad XML block: header size 28024 or total size 1702240364
is larger than data size 2718
ERROR: AndroidManifest.xml is corrupt
In Google Play market i have uploaded earlier version of this app, but it is in Alpha testing version.
I have treied:
Clean + Rebuild (run on Emulator/Real device)
Creating new project and transferring the code in it.
Removing and putting different elements in AndroidManifest.xml
All texts are in string.xml and android:icon is in all drawable folders.
I use extension of the support library - ActionBarSherlock(http://actionbarsherlock.com/)
Here is my AndroidManifest.xml file:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.htv.bg"
android:versionCode="2"
android:versionName="1.1" >
<uses-sdk
android:minSdkVersion="7"
android:targetSdkVersion="19" />
<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" />
<application
android:allowBackup="true"
android:icon="#drawable/ic_app"
android:label="#string/app_name">
<activity
android:name="com.htv.bg.MainActivity"
android:label="#string/app_name"
android:screenOrientation="portrait"
android:theme="#android:style/Theme.NoTitleBar.Fullscreen" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.htv.bg.HomeMenu"
android:label="#string/app_name"
android:screenOrientation="portrait">
<intent-filter>
<action android:name="com.htv.bg.HOMEMENU" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name="com.htv.bg.HtvVideo"
android:label="#string/app_name"
android:screenOrientation="portrait"
android:theme="#android:style/Theme.Dialog" >
<intent-filter>
<action android:name="com.htv.bg.HTVVIDEO" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name="com.htv.bg.InstalVPlayer"
android:label="#string/app_name"
android:screenOrientation="portrait"
android:theme="#android:style/Theme.Dialog" >
<intent-filter>
<action android:name="com.htv.bg.INSTALVPLAYER" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
</application>
</manifest>
Can someone please help out to fix this problem!
I followed this tutorial and now everything is fine:
http://www.youtube.com/watch?v=gpxM0ffAvok

Two Android targets with the same code base installed simultaneously

Im trying to build two diffrent Android apps derived from the same code base using a library project.
The apps are using a intent service for various operations, however this seems to fail when I have two apps using the same code base installed simultaneously.
It seems as if only the first version of the app I install works, the second one don't seem to get the service to run.
Does anyone have any experience of this? How could this be solved?
EDIT:
These are the manifests
Base:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.codebase"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk android:minSdkVersion="8" />
<supports-screens android:largeScreens="true" android:anyDensity="true" android:resizeable="true" android:smallScreens="true" android:normalScreens="true"></supports-screens>
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
<application android:icon="#drawable/icon_launcher" android:label="CodeBase" android:process="#string/app_name" android:name="com.codebase.activity.Application" android:theme="#android:style/Theme.NoTitleBar" android:debuggable="false">
<activity android:configChanges="orientation" android:name="com.codenase.activity.MainActivity" android:launchMode="singleTask">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<service android:name="com.codebase.service.UpdateService" android:process="#string/app_name">
<intent-filter>
<action
android:name="com.codebase.service.UpdateService" />
</intent-filter>
</service>
</manifest>
Target 1:
<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="10" />
<supports-screens android:largeScreens="true" android:anyDensity="true" android:resizeable="true" android:smallScreens="true" android:normalScreens="true"></supports-screens>
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
<application android:icon="#drawable/icon_launcher" android:label="Target One" android:name="com.codebase.activity.Application" android:theme="#android:style/Theme.NoTitleBar">
<activity android:configChanges="orientation" android:name="com.codebase.activity.MainActivity" android:launchMode="singleTask">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<service android:name="com.codebase.service.UpdateService" android:process="#string/app_name">
<intent-filter>
<action
android:name="com.codebase.service.UpdateService" />
</intent-filter>
</service>
</activity>
</application>
</manifest>
Target 2:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.trg2"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="10" />
<supports-screens android:largeScreens="true" android:anyDensity="true" android:resizeable="true" android:smallScreens="true" android:normalScreens="true"></supports-screens>
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
<application android:icon="#drawable/icon_launcher" android:label="Target 2" android:name="com.codebase.activity.Application" android:theme="#android:style/Theme.NoTitleBar">
<activity android:configChanges="orientation" android:name="com.codebase.activity.MainActivity" android:launchMode="singleTask">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<service android:name="com.codebase.service.UpdateService">
<intent-filter>
<action
android:name="com.codebase.service.UpdateService" />
</intent-filter>
</service>
</application>
</manifest>
First, there is no need to define intent-filter for the service in AndroidManifest.xml in this situation, the following definition is sufficient if you don't need provide additional access point from outside your app:
<service android:name="com.codebase.service.UpdateService"/>
Then using public Intent (Context packageContext, Class cls) to start service:
Intent intent = new Intent(getBaseContext(), UpdateService.class);
startService(intent);
Second, if you do need provide additional access point from outside your app, don't use the same action name in multiple app, as it will fool Android OS when try to pass the intent to the corresponding service (in case if you use public Intent (String action) to start your service):
Target 1:
<service android:name="com.codebase.service.UpdateService" android:process="#string/app_name">
<intent-filter>
<action android:name="com.codebase.service.UpdateService.TARGET_1" />
</intent-filter>
</service>
Target 2:
<service android:name="com.codebase.service.UpdateService" android:process="#string/app_name">
<intent-filter>
<action android:name="com.codebase.service.UpdateService.TARGET_2" />
</intent-filter>
</service>
Hope this helps.
Ensure you have qualified your services correctly in the manifest.
e.g
if you had:
Main Project package name = com.johan.p1
Library Project package name = com.johan.library
Assuming your service is in the library project, your main project would define the service as:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.johan.p1"
<service android:name="com.johan.library.MyServiceName" />
</manifest>
I have two versions of the same android app based on one code base as you do.
I don't have any problems. Both app have different package names
However, I ensure that both have the same (shared) userId. Maybe that is the trick
http://developer.android.com/guide/topics/manifest/manifest-element.html
(By the way, when I remember right, the userId required to have a dot in between)

Categories

Resources