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
Related
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
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.
When running my app on my device straight from android studio, its running fine when deployed but its not actually installing - as in no icon in the menu etc (but it is in the settings under apps). Any help to solve would be great.
manifest is below.
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="co.uk.malleymob.morecheatsforsims4" >
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<application
android:allowBackup="true"
android:icon="#mipmap/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
<meta-data android:name="com.google.android.gms.version"
android:value="#integer/google_play_services_version" />
<activity
android:name=".MainActivity"
android:label="#string/app_name">
<intent-filter>
<action android:name="android.intent.action.MainActivity" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".generalCodes"
android:label="#string/title_activity_general_codes" >
</activity>
<activity
android:name=".interactions"
android:label="#string/title_activity_interactions" >
</activity>
<activity
android:name=".skills"
android:label="#string/title_activity_skills" >
</activity>
<activity android:name="com.google.android.gms.ads.AdActivity" />
<activity
android:name=".simCheats"
android:label="#string/title_activity_cheats" >
</activity>
</application>
</manifest>
thanks in advance
Contrary to popular belief the action of this intent filter is not supposed to contain the activity's class name. This should fix it:
<activity
android:name=".MainActivity"
android:label="#string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
It is definitely installed on the phone, if it was run on the phone.
You could try compiling the apk and manually installing with adb:
I assume you are using gradle to build:
From project directory root:
View build tasks:
./gradlew tasks
./gradlew assembleDebug
The apk would be created in app/build/outputs/apk/
Now cd to that directory and run:
adb install my-app.apk
Make sure your device or emulator is connected
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...
I'm using Eclipse to make an Android app. I've used it before and not had this problem. The console says everything installed ok, so I'm a little confused. I'm not sure what is relevant from logcat, but I can post it if you think that would help.
I've restarted Eclipse, ADB, the emulator, and the Mac several times in various orders and nothing has helped. I know it must be something simple but I haven't played around with this in a few months.
Manifest:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.hyser.pinpoint"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk android:minSdkVersion="10" />
<application
android:icon="#drawable/ic_launcher"
android:label="#string/app_name" >
</application>
<activity android:name=".pinpoint" android:label="pinpoint">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
Your Activity needs to be inside of your application tag in your manifest
<application
android:icon="#drawable/ic_launcher"
android:label="#string/app_name" >
<activity android:name=".pinpoint" android:label="pinpoint">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
It's a similar issue to this:
Unable to start Service Intent
Your <activity> tag needs to be in the <application> block.
Is it possible your manifest does not refer to any activities? If you install an app with no activities in the manifest you will get this behavior.