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">
Related
i am working on an app lately and i have never encountered a problem like this. I add a widget on my app via eclipse new activity-->widget and then when i try to run the app on my phone i get this error:
Installation error: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED
Please check logcat output for more details.
Launch canceled!
I have already searched for this problem but every solution given is not helpful.
My manifest file is this. Is there an error i cannot get in it?
Is there any change the problem to be in something else and not in the manifest file?
Thanks
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.hotelreseration"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="17"
android:targetSdkVersion="23" />
<permission
android:name="com.example.hotelreseration.permission.MAPS_RECEIVE"
android:protectionLevel="signature" />
<uses-feature
android:glEsVersion="0x00020000"
android:required="true" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.INTERNET" />
<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" />
<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/getaroom"
android:label="#string/welcome"
android:theme="#style/AppBaseTheme" >
<meta-data
android:name="com.google.android.gms.version"
android:value="#integer/google_play_services_version" />
<meta-data
android:name="com.google.android.maps.v2.API_KEY"
android:value="AIzaSyCMaGYB0vEk8iiQSa29boQF2B58xu3mZjE" />
<activity
android:name=".SelectUserActivity"
android:label="#string/title_activity_select_user"
android:screenOrientation="portrait" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".LoginActivity"
android:label="#string/app_name"
android:screenOrientation="portrait" >
</activity>
<activity
android:name=".CreateAccountActivity"
android:label="#string/title_activity_activity_create_account"
android:screenOrientation="portrait" >
</activity>
<activity
android:name=".MainScreenActivity"
android:label="#string/title_activity_main_screen"
android:screenOrientation="portrait" >
</activity>
<activity
android:name=".ForgotPassActivity"
android:label="#string/title_activity_forgot_pass"
android:screenOrientation="portrait" >
</activity>
<activity
android:name=".MainTestActivity"
android:label="#string/title_activity_main_test"
android:screenOrientation="portrait" >
</activity>
<activity
android:name=".SettingsActivity"
android:label="#string/title_activity_settings"
android:screenOrientation="portrait" >
</activity>
<activity
android:name=".Fragment_reservations"
android:label="#string/title_activity_fragment3"
android:screenOrientation="portrait" >
</activity>
<activity
android:name=".ListBlackFontActivity"
android:label="#string/title_activity_list_black_font"
android:screenOrientation="portrait" >
</activity>
<activity
android:name=".FragmentAddHotel2"
android:label="#string/title_activity_fragment_add_hotel2"
android:screenOrientation="portrait" >
</activity>
<activity
android:name="$NavigationDrawer.Fragment_hotels"
android:label="#string/title_activity_fragment_hotels"
android:screenOrientation="portrait" >
</activity>
<activity
android:name="$NavigationDrawer.Fragment_info"
android:label="#string/title_activity_fragment1"
android:screenOrientation="portrait" >
</activity>
<activity
android:name="$NavigationDrawer.MainActivity"
android:label="#string/title_activity_main"
android:screenOrientation="portrait" >
</activity>
<activity
android:name="$NavigationDrawer.Fragment_maps"
android:label="#string/title_activity_fragment_maps"
android:screenOrientation="portrait" >
</activity>
<activity
android:name="$NavigationDrawer.AddHotelActivity"
android:label="#string/title_activity_add_hotel"
android:screenOrientation="portrait" >
</activity>
<activity
android:name="$NavigationDrawer.FragmentAddRoom"
android:label="#string/title_activity_fragment_add_room"
android:screenOrientation="portrait" >
</activity>
<receiver android:name=".AppWidget" >
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
</intent-filter>
<meta-data
android:name="android.appwidget.provider"
android:resource="#xml/app_widget_info" />
</receiver>
</application>
</manifest>
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.
I am having a issue with submitting my app to the google play store because every
time i upload my APK I get a "Android Supported Devices : 0"
I really have no idea how to fix this. When I remove all references to signalR and remove the jar files, I get 8k devices supported.
Here is some information about my project
EDIT
Here is Manifest
<?xml version="1.0" encoding="utf-8"?>
<uses-sdk
android:minSdkVersion="15"
android:targetSdkVersion="21" />
<!--
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<android:uses-permission android:name="android.permission.READ_PHONE_STATE" />
<android:uses-permission
android:name="android.permission.READ_EXTERNAL_STORAGE"
android:maxSdkVersion="18" />
!-->
<application
android:allowBackup="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/StudyTreeTheme" >
<activity android:name="com.braintreepayments.api.threedsecure.ThreeDSecureWebViewActivity" />
<service
android:name="com.paypal.android.sdk.payments.PayPalService"
android:exported="false" />
<!-- Required to use Drop-In -->
<activity android:name="com.braintreepayments.api.dropin.BraintreePaymentActivity" />
<!-- Required to use PayPal -->
<activity android:name="com.paypal.android.sdk.payments.PayPalProfileSharingActivity" />
<activity android:name="com.paypal.android.sdk.payments.ProfileSharingConsentActivity" />
<activity android:name="com.paypal.android.sdk.payments.FuturePaymentInfoActivity" />
<activity android:name="com.paypal.android.sdk.payments.LoginActivity" />
<activity
android:name="com.paypal.android.sdk.payments.PayPalTouchActivity"
android:theme="#android:style/Theme.Translucent.NoTitleBar" />
<activity
android:name=".Activities.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=".Activities.SignUpActivity"
android:label="#string/title_activity_sign_up" >
</activity>
<activity
android:name=".Activities.ProfileActivity"
android:label="#string/title_activity_profile" >
</activity>
<activity
android:name=".Activities.BaseActivity"
android:label="#string/title_activity_base" >
</activity>
<activity
android:name=".Activities.CourseListActivity"
android:label="#string/title_activity_course_list" >
</activity>
<activity
android:name=".Activities.TutorLocalSessionActivity"
android:label="#string/title_activity_tutor_profile"
android:uiOptions="splitActionBarWhenNarrow" >
<meta-data
android:name="android.support.UI_OPTIONS"
android:value="splitActionBarWhenNarrow" />
</activity>
<activity
android:name=".Activities.StudentProfileActivity"
android:label="#string/title_activity_student_profile"
android:uiOptions="splitActionBarWhenNarrow" >
<meta-data
android:name="android.support.UI_OPTIONS"
android:value="splitActionBarWhenNarrow" />
</activity>
<activity
android:name=".Activities.StudySessionInformationActivity"
android:label="#string/title_activity_study_session" >
</activity>
<activity
android:name=".Activities.dummy.DetailTutorStudySession"
android:label="#string/title_activity_detail_tutor_study_session" >
</activity>
<activity
android:name=".Activities.DetailTutorStudySessionActivity"
android:label="#string/title_activity_detail_tutor_study_session" >
</activity>
<activity
android:name=".Activities.CreateStudySessionActivity"
android:label="#string/title_create_study_session" >
</activity>
<activity
android:name=".Activities.TutorStudySessionActivity"
android:label="#string/title_activity_tutor_study_session"
android:uiOptions="splitActionBarWhenNarrow" >
</activity>
<activity
android:name=".Activities.SessionTimerActivity"
android:label="#string/title_activity_session_timer" >
</activity>
<activity
android:name=".Activities.SettingsActivity"
android:label="#string/title_activity_settings" >
</activity>
<activity
android:name=".findTutorActivity"
android:label="#string/title_activity_find_tutor" >
</activity>
<activity
android:name=".Activities.FindTutorActivity"
android:label="#string/title_activity_find_tutor" >
</activity>
<activity
android:name=".FindTutorsActivity"
android:label="#string/title_activity_find_tutors" >
</activity>
<activity
android:name=".Activities.StudentRatingActivity"
android:label="#string/title_activity_student_rating" >
</activity>
<activity
android:name=".Activities.StudentCreditCardActivity"
android:label="#string/title_activity_student_credit_card"
android:uiOptions="splitActionBarWhenNarrow" >
</activity>
<activity
android:name=".Activities.TutorPersonalInformationActivity"
android:label="#string/title_activity_tutor_personal_information" >
<meta-data
android:name="android.support.UI_OPTIONS"
android:value="splitActionBarWhenNarrow" />
</activity>
<activity
android:name=".Activities.StudentCreditCardDisplayActivity"
android:label="#string/title_activity_student_credit_card_display" >
</activity>
<activity
android:name=".Activities.ChatActivityPackage.ChatRoomActivity"
android:label="#string/title_activity_chat_room" >
</activity>
<activity
android:name=".Activities.ChatActivityPackage.StudentToTutorChatActivity"
android:label="#string/title_activity_student_to_tutor_chat" >
</activity>
<activity
android:name=".Activities.TutorProfileActivity"
android:label="#string/title_activity_tutor_profile" >
</activity>
<activity
android:name=".Activities.TutorFeeActivity"
android:label="#string/title_activity_tutor_fee" >
</activity>
<activity
android:name=".Activities.ChatActivityPackage.TutorToStudentChatActivity"
android:label="#string/title_activity_tutor_to_student_chat" >
</activity>
<activity
android:name=".Activities.TutorAddRemoveCourseActivity"
android:label="#string/title_activity_tutor_add_remove_course" >
</activity>
<activity
android:name=".Activities.ShareWalling"
android:label="#string/title_activity_share_walling" >
</activity>
</application>
</manifest>
I modified the jar files that were causing the issue. Use this copy if you are having issues with android supporting 0 devices.
https://github.com/eak65/FixedSignalRJar
I published an application but google play shows me that 0 devices are compatible.
I checked the Manifest but i don't know why.
I tried to change minsdk and targetsdk but the result is the same.
I need help please!
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="it.h2_web.www.agos"
android:versionCode="3"
android:versionName="1.0">
<uses-sdk android:minSdkVersion="16" android:targetSdkVersion="17" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.CALL_PHONE" />
<application
android:allowBackup="true"
android:icon="#drawable/icona"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
<receiver android:name=".services.BootCompletedIntentReceiver">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<action android:name="YouWillNeverKillMe" />
</intent-filter>
</receiver>
<service android:enabled="true" android:name=".services.MyService"></service>
<activity
android:name=".Dashboard"
android:label="#string/app_name"
android:theme="#android:style/Theme.Holo.Light.NoActionBar.Fullscreen"
android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".ImmobiliView"
android:label="#string/app_name"
android:theme="#android:style/Theme.Holo.Light.NoActionBar.Fullscreen"
android:screenOrientation="portrait"
>
</activity>
<activity
android:name=".ClientiView"
android:label="#string/app_name"
android:screenOrientation="portrait"
>
</activity>
<activity
android:name=".ImmobiliList"
android:label="#string/app_name"
android:screenOrientation="portrait">
</activity>
<activity
android:name=".ClientiList"
android:label="#string/app_name"
android:screenOrientation="portrait">
</activity>
<activity
android:name=".LoginView"
android:label="#string/app_name"
android:screenOrientation="portrait">
</activity>
<activity
android:name=".WebActivity"
android:label="#string/app_name"
android:theme="#android:style/Theme.Light.NoTitleBar.Fullscreen"
android:windowSoftInputMode="adjustPan"
android:screenOrientation="portrait">
</activity>
<activity
android:name=".AgendaView"
android:label="#string/app_name"
android:theme="#android:style/Theme.Light.NoTitleBar.Fullscreen">
</activity>
<activity
android:name=".ContactsView"
android:label="#string/app_name"
android:theme="#android:style/Theme.Light.NoTitleBar.Fullscreen">
</activity>
</application>
</manifest>
Refer the below link for solution
Optimizing Android manifest file for largest number of supported devices
http://developer.android.com/guide/topics/manifest/supports-screens-element.html
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