Valid sdkVersion for slideme.org - android

I am trying to upload an apk to slidme.org
http://slideme.org/node/add/mobileapp
But I get this validation failing
Your application must have a valid sdkVersion set. You need to edit
your AndroidManifest.xml file to fix this, and then upload again the
.apk file.
What is the problem with my manifest ?
<application
android:screenOrientation="portrait"
android:icon="#drawable/icon"
android:label="#string/app_name" >
<activity
android:screenOrientation="portrait"
android:label="#string/app_name"
android:name=".Start" >
<intent-filter >
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
<uses-sdk
android:minSdkVersion="4"
android:targetSdkVersion="7" />

I had similar problem and solve it by:
remove:
minSdkVersion 15
targetSdkVersion 28
from gradle.
and adding :
<uses-sdk
android:minSdkVersion="15"
android:targetSdkVersion="26" />
to manifest.
It seems slideme isn't up to date...

Solved it by removing minSdkVersion. and refered targetSdkVersion to min version.
So in your case it will become

Related

Android Studio 3.1.3 android:roundIcon

I have a Compile Error telling me to remove android:roundIcon from AndroidManifest.xml, similar to this other post:
No resource identifier found for attribute 'roundIcon' in package 'android'
I have targeted API 15 and only have that version installed, but Android Studio keeps re-adding that line and breaking compilation. How do I stop/fix this?
My build.gradle has:
minSdkVersion 15
targetSdkVersion 15
AndroidManifest.xml:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.testapplication"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="15"
android:targetSdkVersion="15" />
<application
android:allowBackup="true"
android:debuggable="true"
android:icon="#mipmap/ic_launcher"
android:label="#string/app_name"
android:roundIcon="#mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="#style/AppTheme" >
<activity android:name="com.example.testapplication.MainActivity" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
It just keeps re-adding android:roundIcon="#mipmap/ic_launcher_round" if I delete it. How do I stop that behaviour?
Thanks.
Just remove all the "#mipmap/ic_launcher" for round icons. You'll be done. Also, if it doesn't solve, try adding your own icon for the same using an image asset and setting it as "ic_launcher" icon.

AAPT2 error: check logs for details after Android Studio upgrade

I've upgraded my Android Studio, since this I get an error "AAPT2 error: check logs for details"
In the internet I didn't find a solution.
My androidmanifest:
<?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" />
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="#string/google_maps_key" />
<application
android:allowBackup="true"
android:icon="#mipmap/ic_launcher"
android:label="#string/app_name"
android:supportsRtl="true"
android:theme="#style/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">
</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 tried a reinstall and downgrad of the android sdk. I deleted .gradle. I set the property android.enableAapt2=false in gradle.properties
What else can I try? What other information do you need?
I ran into this problem a while ago, after updating my Android Studio to the latest version. After searching for a long time, this answer was my savior.
As this answer suggests, the problem might be messed up XML files in your project. You can look for the messed up part by yourself, or run the assembleDebug command in your terminal (like this), which can find the exact line that should be fixed.
Based on Google's documentation:
If you are experiencing issues while using AAPT2, you can disable it by setting android.enableAapt2=false in your gradle.properties file and restarting the Gradle daemon by running ./gradlew --stop from the command line.
When you set the android.enableAapt2=false you have to restart the Gradle daemon.
You should restart the Daemon and then Click on
Also ensure that you are using latest buildToolsVersion
I also got same problem.By changing build.gradle file like as follows i resolved that.
android {
compileSdkVersion 27
buildToolsVersion '27.0.3'
defaultConfig {
minSdkVersion 16
targetSdkVersion 27
versionCode 1
versionName "1.0"
}
I also solved the issue as per Paila Khagesh suggestion. I had
compileSdkVersion 26
and
targetSdkVersion 25
After changing targetSdkVersion to 26 and sync gradle error was gone.
Many ways to create this problem! Here is one that we created and had no idea why it happened. By accident we pasted our favorite color.xml file int the styles.xml folder. We had no warning when we did the paste and not while continuing to design the app. BUT when we closed the app and it needed to rebuild when loaded the fun began. We guess the solution might be to build before you close the app or review all your XML files before you build or close better yet LOOK WHERE YOU ARE PASTING

Android compilation trouble after adding and removing BlackBerry SDK

I installed BB tools for Eclipse, just added and removed BB Nature to one of my projects.
And now, I can't compile it (for Android).
Eclipse told me about some troubles in AndroidManifest.xml:
native-code: armeabi AndroidManifest.xml /VitocarsAndroidApp AndroidManifest.xml BlackBerry Verifying Problem
But the manifest is OK, no one line is highlighted:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.asap.vitocarsandroidapp"
android:versionCode="5"
android:versionName="1.04" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="17" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.CALL_PHONE" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<application
android:name="com.asap.vitocarsandroidapp.system.VitocarsApplication"
android:allowBackup="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
<activity
android:name="com.asap.vitocarsandroidapp.LoginActivity"
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.asap.vitocarsandroidapp.TableViewActivity"
android:label="#string/title_activity_table_view" >
</activity>
<activity
android:name="com.asap.vitocarsandroidapp.PartActivity"
android:label="#string/title_activity_part" >
</activity>
<activity
android:name="com.asap.vitocarsandroidapp.PhotoViewActivity"
android:label="#string/title_activity_photo_view" >
</activity>
<activity
android:name="com.asap.vitocarsandroidapp.UserRegisterActivity"
android:label="#string/title_activity_user_register" >
</activity>
<activity
android:name="com.asap.vitocarsandroidapp.ConfirmPhoneActivity"
android:label="#string/title_activity_confirm_phone" >
</activity>
<activity
android:name="com.asap.vitocarsandroidapp.OfficeActivity"
android:label="#string/title_activity_office" >
</activity>
<activity
android:name="com.asap.vitocarsandroidapp.PriceOfferActivity"
android:label="#string/title_activity_price_offer" >
</activity>
<activity
android:name="com.asap.vitocarsandroidapp.RegionOrderActivity"
android:label="#string/title_activity_region_order" >
</activity>
<activity
android:name="com.asap.vitocarsandroidapp.MapView"
android:label="#string/title_activity_map_view" >
</activity>
</application>
</manifest>
I already spent a lot of time, trying to solve it.
Maybe, somebody can help me?
Had the exact same issue.
Only uninstalling the Blackberry plugin solved it for me.
I guess that the Blcackberry plugin still left some remainders in the validation process of Eclipse, even though I removed the Blackberry nature from the project.
Check the .project file and remove all the * rim * stuff.
A build command and nature was leftover when i ran into this problem.

Android app is shown as not compatible in play store

I have published a new update of my App. After publishing it got a warning like "Warning: Your active APK supports less devices then the previous APK. Some users won't get the update."
So i've compared the details of the current and the prior APK. There is only one difference: The new one has the additional entry "Native Platform: simple-xml.2.6.9.jar".
Do you think that there is a problem with it? Acutally i've intergrated the .jar into my android project.
Additionally, the developer console shows me that the app is now compatible with 0 devices... if i search for a certain device i get a notice that it's because of my manifest settings.
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="edu.kit.aifb.nukit"
android:versionCode="8"
android:versionName="#string/app_versionName" >
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.VIBRATE"/>
<uses-sdk
android:minSdkVersion="7"
android:targetSdkVersion="17" />
<application
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/Theme.KIT.Styled"
android:allowBackup="true" >
<activity
android:name="edu.kit.aifb.nukit.gui.SplashScreenActivity"
android:label="#string/app_name"
android:screenOrientation="portrait"
android:theme="#style/Theme.Sherlock.Light.NoActionBar"
android:clearTaskOnLaunch="true" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="edu.kit.aifb.nukit.gui.ChooseCourseActivity"
android:screenOrientation="portrait"></activity>
<activity
android:name="edu.kit.aifb.nukit.gui.QuestioningAndVotingActivity"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateHidden"></activity>
<activity
android:name="edu.kit.aifb.nukit.gui.AnswerQuestionActivity"
android:screenOrientation="portrait"></activity>
<activity
android:name="edu.kit.aifb.nukit.gui.ShowResultsActivity"
android:screenOrientation="portrait"></activity>
<activity
android:name="edu.kit.aifb.nukit.gui.ImpressumActivity"
android:screenOrientation="portrait"></activity>
<activity
android:name="edu.kit.aifb.nukit.gui.LicensesActivity"
android:screenOrientation="portrait"
android:hardwareAccelerated="false"></activity>
<activity
android:name="edu.kit.aifb.nukit.gui.survey.SurveyListActivity"
android:screenOrientation="portrait"></activity>
<activity
android:name="edu.kit.aifb.nukit.gui.survey.QuestionActivity"
android:screenOrientation="portrait"
android:parentActivityName=".SurveyListActivity" >
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".SurveyListActivity" />
</activity>
<activity
android:name="edu.kit.aifb.nukit.gui.survey.SurveyResultsActivity"
android:label="SurveyResultsActivity"
android:parentActivityName=".SurveyListActivity">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".SurveyListActivity" />
</activity>
</application>
if i install the apk directly on my device, it works fine.
This should probably be due to changes done in your Android Manifest relating to max and min sdk versions
<uses-sdk android:minSdkVersion="integer"
android:targetSdkVersion="integer"
android:maxSdkVersion="integer" />
If this SDK version range has been altered, your new updated app might support lesser number of devices.
Alright, i fixed it.
The problem was that actualy only the SurveyLib.jar is using simple-xml-2.6.9.jar and the simplexml.jar was included within the SurveyLib.jar. So i think there was a problem dexing the simplexml.jar within surveylib.jar.
i've created the surveylib.jar again without simplexml.jar but included the simplexml.jar to the libs folder of my app.
now it works fine. thanks to you all for your help.

Android - after publishing an app, how long before it is searchable?

I published my first app yesterday evening, and it appears under this url:
https://play.google.com/store/apps/details?id=com.appname
but I can not find it from my mobile phone in the android market by any variations of the name?
Is there a reason for that?
Also, the name there is my project name in eclipse, but how do I change it so that the app has a normal looking name to users and doesn't have the com. in the com.appname ?
Thanks!!
ps - the app name is com.problemio
Here is my manifest:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.problemio"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk android:minSdkVersion="15" />
<uses-permission android:name="android.permission.INTERNET" />
<application
android:icon="#drawable/ic_launcher"
android:label="#string/app_name" >
<activity
android:name=".ProblemioActivity"
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=".AddProblemActivity"
android:label="#string/add_problem" />
<activity
android:name=".LoginActivity"
android:label="#string/login" />
<activity
android:name=".MyProblemsActivity"
android:label="#string/your_problems" />
<activity
android:name=".LogoutActivity"
android:label="#string/app_name" />
<activity
android:name=".CreateProfileActivity"
android:label="#string/create_account" />
<activity
android:name=".ProblemActivity"
android:label="#string/problem_page_header" />
<activity
android:name=".SuggestSolutionActivity"
android:label="#string/suggest_solution_header" />
<activity
android:name=".SuggestedSolutionActivity"
android:label="#string/suggested_solution_header" />
<activity
android:name=".ViewSolutionsActivity"
android:label="#string/view_solutions_header" />
<activity
android:name=".TopicActivity"
android:label="#string/topic_header" />
</application>
</manifest>
and I guess I need to add this line to it:
<supports-screens android:largeScreens="true" android:normalScreens="true" android:smallScreens="true"/>
What else needs to be done? Thanks!
//your minsdk is android:minSdkVersion="15" only Icream sandwitch (ICS) device can find your app from market.
if you are targeting for api level 15 you can also add android:targetSdkVersion="15"
so change it to api level 4. –
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="15"/>
Via you direct link using the package name, the App is available as soon as it is through Googles check routines and published in the Store.
But the search index takes more time to index the App. Usually it should be done in a few hours.

Categories

Resources