I am aware this question is asked multiple times on stackoverflow, but the answers given in those posts don't help me out...
This is my manifest
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="be.gps.android"
android:versionCode="2"
android:versionName="0.0.2" >
<uses-sdk
android:minSdkVersion="16"
android:targetSdkVersion="19"/>
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<application
android:allowBackup="true"
android:icon="#drawable/ic_launcher"
android:label="#string/TRL004451"
android:theme="#style/AppTheme" >
<activity
android:name=".StartUpActivity" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".activities.login.LoginActivity"
android:windowSoftInputMode="stateVisible|adjustResize|stateHidden" >
</activity>
<activity
android:name=".activities.useraccount.resetpassword.RequestResetPasswordActivity"
android:windowSoftInputMode="stateVisible|adjustResize|stateHidden" >
</activity>
<activity
android:name=".activities.useraccount.resetpassword.VerifyResetPasswordActivity"
android:windowSoftInputMode="stateVisible|adjustResize|stateHidden" >
</activity>
<activity
android:name=".activities.settings.ServerSettingsActivity"
android:windowSoftInputMode="stateVisible|adjustResize|stateHidden" >
</activity>
<activity
android:name=".activities.settings.FilterActivity"
android:windowSoftInputMode="stateVisible|adjustResize|stateHidden" >
</activity>
<activity
android:name=".activities.main.MainActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:windowSoftInputMode="stateVisible|adjustResize|stateHidden" >
</activity>
<activity
android:name=".activities.settings.DatePickerActivity"
android:windowSoftInputMode="stateVisible|adjustResize|stateHidden" >
</activity>
</application>
</manifest>
Seems to be a problem with a library I was using (signalR).
This post had the exact same issue : Supported devices 0 on Google play
I just replaced the signalR jars with these https://github.com/eak65/FixedSignalRJar and now I have 9000 supported devices.
Related
I am facing an AAPT2 error, this is due to the upgrade of Android Studio.
After a lot of Internet Search, i figured it must be something with the xml in the Android Manifest. I tried different things, chanching the structre, but not sucessful yet. Do have experience with the AndroidManifest.xml and AAPT2? Here's mine
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="ch.workouttracker"
android:versionCode="1"
android:versionName="1.0" >
<!--
The ACCESS_COARSE/FINE_LOCATION permissions are not required to use
Google Maps Android API v2, but you must specify either coarse or fine
location permissions for the 'MyLocation' functionality.
-->
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<application
android:allowBackup="true"
android:icon="#mipmap/ic_launcher"
android:label="#string/app_name"
android:supportsRtl="true"
android:theme="AppTheme">
<activity android:name=".TrackActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".ProfileActivity"
android:label="#string/title_activity_profile" >
</activity>
<activity
android:name=".TrackCardioActivity"
android:label="#string/title_activity_track_cardio">
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="#string/google_maps_key" />
</activity>
<activity
android:name=".TrackWorkoutActivity"
android:label="#string/title_activity_track_workout" >
</activity>
<activity
android:name=".LogoutActivity"
android:label="#string/title_activity_logout">
</activity>
<activity
android:name=".SettingsActivity"
android:label="#string/title_activity_settings" >
</activity>
<activity
android:name=".DashbordActivity"
android:label="#string/title_activity_dashboard" >
</activity>
<activity
android:name=".CreatePlanActivity"
android:label="#string/title_activity_create_plan" >
</activity>
<activity
android:name=".CreateExerciseActivity"
android:label="#string/title_activity_create_exercise" >
</activity>
<activity
android:name=".EditActivity"
android:label="#string/title_activity_edit" >
</activity>
<activity
android:name=".LoginActivity"
android:label="#string/title_activity_login" >
</activity>
<activity
android:name=".WorkoutDetailActivity"
android:label="#string/title_activity_workout_detail" >
</activity>
<activity
android:name=".PlanDetailActivity"
android:label="#string/title_activity_plan_detail" >
</activity>
<activity android:name=".CalendarActivity" >
</activity>
<activity android:name=".EditExerciseActivity">
</activity>
</application>
</manifest>
I can't find the problem. Maybe you can.
Try #style/Apptheme instead of just Apptheme.
<application
android:allowBackup="true"
android:icon="#mipmap/ic_launcher"
android:label="#string/app_name"
android:supportsRtl="true"
android:theme="#style/AppTheme">
After searching three hours on the web I couldn't find a solution for my app , I'm having an error that says : INSTALL_PARSE_FAILED_MANIFEST_MALFORMED .. Any Help ! by the way I tried to test it before and it works great !! Any suggestions ?
This is the Manifest file :
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="19" />
<application
android:allowBackup="true"
android:icon="#drawable/icon"
android:label="#string/app_name"
android:theme="#style/AppTheme" android:name="">
<activity
android:name="com.abdullahadhaim.itc.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>
<activity
android:name="com.google.ads.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" />
<activity
android:name="com.abdullahadhaim.itc.Two"
android:label="#string/title_activity_two" >
</activity>
<activity
android:name="com.abdullahadhaim.itc.Three"
android:label="#string/title_activity_three" >
</activity>
<activity
android:name="com.abdullahadhaim.itc.Four"
android:label="#string/title_activity_four" >
</activity>
<activity
android:name="com.abdullahadhaim.itc.Five"
android:label="#string/title_activity_five" >
</activity>
<activity
android:name="com.abdullahadhaim.itc.Six"
android:label="#string/title_activity_six" >
</activity>
<activity
android:name="com.abdullahadhaim.itc.Seven"
android:label="#string/title_activity_seven" >
</activity>
<activity
android:name="com.abdullahadhaim.itc.Eight"
android:label="#string/title_activity_eight" >
</activity>
<activity
android:name="com.abdullahadhaim.itc.End"
android:label="#string/title_activity_end" >
</activity>
</application>
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
Looks like your manifest file is missing those lines :
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.abdullahadhaim.itc"
android:versionCode="1"
android:versionName="1.0">
Try to add them, then clean-up the project and build it
I am trying to build a real estate app. I am having the following problem. I am trying to run this in the Android Studio but i seem to get error that I am missing a required attribute height and width. Could someone please tell me what I am doing wrong? I will be very thankful.
This is my manifest:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.estate"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="17" />
<application
android:allowBackup="true"
android:configChanges="keyboardHidden|orientation"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name" >
<activity
android:name="com.example.estate.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>
<!-- Registration Activity -->
<activity
android:name=".RegActivity"
android:label="User Registration" >
</activity>
<activity
android:name=".ScreenActivity"
android:label="Welcome::" >
</activity>
<activity
android:name=".NewPropertyActivity"
android:label="Post a property/holding" >
</activity>
<activity
android:name=".AllProductsActivity"
android:label="Available Properties" >
</activity>
<activity
android:name=".EditProductActivity"
android:label="Property Details" >
</activity>
<activity
android:name=".MessageActivity"
android:label="Talk to the Admin" >
</activity>
<activity
android:name=".ReadComments"
android:label="Property" >
</activity>
<activity
android:name=".AddComment"
android:label="Property" >
</activity>
</application>
<!-- Internet Permissions -->
<uses-permission android:name="android.permission.INTERNET" />
</manifest>
I am getting this problem when publishing android apk file on Google Play.
This is my AndroidManifast.xml code:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="xx.com"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="17" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<application
android:allowBackup="true"
android:icon="#drawable/main_icon"
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="xx.com.MainActivity"
android:label="#style/AppTheme" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="xx.com.Images"
android:label="#string/app_name" >
</activity>
<activity
android:name="xx.com.Awards"
android:label="#string/app_name" >
</activity>
<activity
android:name="xx.com.Magazine"
android:label="#string/app_name" >
</activity>
<activity
android:name="com.google.android.gms.ads.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/>
</application>
I tried many stackoverflow.com examples but failed. Apk is working fine in device and emulator.
This may be your problem
<activity
android:name="amithanda.com.MainActivity"
android:label="#style/AppTheme" >
label should be a String value.
android:label="#string/app_name"
FYI : Developer guide gives you an idea
android:label="string resource"
I made my android application and tested it on the AVD but when I want to install it on my phone, I get "application not installed"
what could cause this problem??
here is the Manifest.xml, I don't see any thing weird in it !!
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.dashboard_our"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="18" />
<permission
android:name="com.example.dashboard_our.permission.MAPS_RECEIVE"
android:protectionLevel="signature" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<application
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#android:style/Theme.Light.NoTitleBar" >
<activity
android:name="com.example.dashboard_our.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>
<activity
android:name="com.example.dashboard_our.Hotels"
android:label="#string/app_name" >
</activity>
<activity
android:name="com.example.dashboard_our.Restaurants"
android:label="#string/app_name" >
</activity>
<activity
android:name="com.example.dashboard_our.About"
android:label="#string/app_name" >
</activity>
<activity
android:name="com.example.dashboard_our.PrayTime"
android:label="#string/app_name" >
</activity>
<activity
android:name="com.example.dashboard_our.Airports"
android:label="#string/app_name" >
</activity>
<activity
android:name="com.example.dashboard_our.Currency_convert"
android:label="#string/app_name" >
</activity>
<activity
android:name="com.example.dashboard_our.Translator"
android:label="#string/title_activity_translate" >
</activity>
<activity
android:name="com.example.dashboard_our.WeatherActivity"
android:label="#string/app_name" >
</activity>
<activity
android:name="com.example.dashboard_our.PlaceDetailsActivity"
android:label="#string/app_name" >
<intent-filter>
<action android:name=".PlaceDetails" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name="com.example.dashboard_our.Todo"
android:label="#string/app_name" >
</activity>
<activity
android:name="com.example.dashboard_our.Ocr"
android:label="#string/app_name" >
</activity>
<activity
android:name="com.example.dashboard_our.TodoDetailActivity"
android:label="#string/app_name" >
</activity>
<provider
android:name=".contentprovider.MyTodoContentProvider"
android:authorities="de.vogella.android.todos.contentprovider" >
</provider>
<meta-data
android:name="com.google.android.maps.v2.API_KEY"
android:value="API-KEY" />
</application>
</manifest>
any error from a DDMS? also you can try looking for .apk file from your project source and installing the app into the device.
Did you check "allow installation from non market applications" in your phone settings?
Did you remove an SD card around the time of installation?
Check if you have declared Main Activity twice inside AndroidManifest.xml. Delete one.
Another solution is if you haven't signed your app, you need to sign it. As the docs say All applications must be signed. The system will not install an application on an emulator or a device if it is not signed. Go here for more information: Android App Signing
I solved it, the problem was in my phone, I had to format my phone in order to work