.apk file not working on device - android

i took an android project and imported it in eclipse. in properties->android section it is showing platform 1.6 and API level 4. I have downloaded Android 2.2. Now when i try to make some changes in the source code and make an .apk file and try to install on my android device the device shows an error : Application not installed. the project is not showing any error but it is showing a warning : Attribute minSdkVersion (3) is lower than the project target API level (4) in manifest file. the person who gave me th eproject i asked him to mail his .apk file to me and that .apk file is running perfectly on the device. Please advice.

Change to API level 3 (Android 1.5), that must be the solution. you must have in your manifest.xml defined a minSdkVersion = 3
</application>
<uses-sdk android:minSdkVersion="3" />
</manifest>
or change the minSdkVersion to Api level 4 at your manifest.xml file that correspond to android 1.6
</application>
<uses-sdk android:minSdkVersion="4" />
</manifest>
build, create and sign your .apk again

alternatively you could try this:
when application run on emulator it creates an .apk file on project/bin folder. you just connect your android phone with usb mass storage and then copy this apk to SD card. it will then install the app on phone by clicking the apk file on phone. i've faced the same problem and now i've successfully installed my apps on t mobile G1.

Related

INSTALL_FAILED_OLDER_SDK when trying to run on an Gingerbread device

I read some stuff on the net about this problem. But the solution presented did not solve my problem.
I've a Android device with enabled usb debugging and Android 2.3.6 running on it. I downloaded Android Studio and downloaded the SDK API 10 (Android Version 2.3.3) and I added the following lines to my AndroidManifest.xml:
<uses-sdk
android:minSdkVersion="10"
android:targetSdkVersion="10" />
I cleaned and rebuilt the project. However, I'm still getting the error:
Failure [INSTALL_FAILED_OLDER_SDK]
Why could this be happening?
I downloaded Android Studio and downloaded the SDK API 10 (Android
Version 2.3.3) and I added the following lines to my
AndroidManifest.xml:
you have to update your build.gradle file (module build.gradle). Those values in the AndroidManifest are ignored
defaultConfig {
minSdkVersion 10
targetSdkVersion 10
}
also you can remove targetSdkVersion, since they are the same value. If you leave it unset, android will pick up automatically the value of the minSdkVersion

"There was a problem parsing the package" when installing my app

I had to reinstall my computer. Now, when I'm launching my app from Eclipse on the virtual device, it works fine. However, when I create a distribution, the .apk file is only half the size it used to be so far and gives a
"There was a problem parsing the package"
error message when trying to install the fresh .apk on my phone (Android version 4.1.2).
My manifest contains
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="15" />
I have the latest Android SDK tools etc. as well as API v8, v15 and v17 installed.
In "Project Build Target" (project properties), API 15 is checked. Lower than the one on my phone, so this common solution for this error message doesn't seem to apply in my case.
The distribution is using the default proguard-android-optimize.txt .
The fact that that the size of the .apk has halved made me suspect proguard, but even when I removed all options from its config file, the problem exists. I'm puzzled.

The Android 2.2 application APK file which is unsigned to install in Android 2.1 HTC hero phone for testing

I copied the .apk file to phone and trying to install through Astro file manager but it is not showing Install button, so I am not able to install. The htc hero phone android ver 2.1 and my apk is build in Android 2.2. Through adb install to install the apk also showing Failure [INSTALL_FAILED_OLDER_SDK], so please help me out, how to install my apk in my android HTC hero mobile to test my APK>
If your application has a minimum SDK version of 2.2, it won't work on your HTC Hero with version 2.1. Set your application's min SDK version to 2.1 using this tag in your Manifest:
<uses-sdk android:minSdkVersion="4" />
However, this won't work if your application uses features available in Android 2.2 and higher, so if it's true, then you won't be able to run your app on HTC Hero. Hope this helps.
U can install Android 2.1(API level 7) application on Andriod 2.2(API level 8) device but cant install 2.2 app on 2.1 device everytime. If u have source code then add below tag in ur manifest The application will get installed. Application may not work if its using API introdused in 2.2 and not available in 2.1.

App to Support Android 2.1 and Apps2SD

I currently have an app which is set to support Android 2.2 and have the Android Manifest file the line of code to enable the app to be installed on to the SD Card. I want to be able to make the App also support Android 2.1 and above. Is there a way I can do this or do I need to have two separate apps. One for Android 2.1 and another for 2.2 and above.
Thanks for your help
No.
Simply in the Manifest editor add the uses-sdk in "Manifest extras" and set only the minSdkVersion attribute to an API version of your choice. Don't set the Targetsdkversion.
This works for my apps.
I set:
android:installLocation="auto"
and
<uses-sdk android:minSdkVersion="7"/>
You can find all this information on the Android dev guide

How to change the minSDK Version in eclipse?

While creating a new android project in eclipse 3.5, i have selected Android 2.1 Update1 as build target. But i forgot to give the mini SDK version. Now when the build the project, its giving a warning message "WARNING: Application does not specify an API level requirement!Device API version is 8 (Android 2.2)"
The application is running fine..but when i run that application is my Samsung Galaxy S which is having android 2.1, the application is behaving differently.
I have even tried adding
<uses-sdk minSdkVersion="7" /> in the manifest file..But still i am getting the warning message..
So how can i change the mini SDK of my project in eclipse to 7,so that i get the same result in my emulator and Mobile phone?
Thanks in advance
Shijilal
In your manifest there should be something like this
<uses-sdk android:minSdkVersion="int" />
Now just change the number to the desired version number. Additionally you should also change the value of the target in the default.properties file.

Categories

Resources