parsing the package error - android

I'm new to Android development. I gone through the tutorial and managed to create Hello World program in my Eclipse. I managed to run it and viewed the output in Emulator. I export the project and saved in my local and later moved to my Samsung Galaxy Nexus. I used ASTRO file management to install the file, but I got an error saying 'Parse Error:There is a problem parsing the package'. I googled and most of them asking me to change the file manager to install the project in Samsung Galaxy Nexus. Hope someone can help me on this matter. The phone using and

You should install the apk in the phone and not the project.

Better connect your device to Pc and run your application to mobile. Before, connecting your mobile it needs some PC suite to support your device for Eclipse. Just download that also. Hope it helps. And, also see these links -
1) Parsing Error
2) Hello World program Parsing Error

Its version issue. My target was 4.0.3 mean while my phone was 4.0.2. I changed the target version in my project and its works fine. Thanks

Have you exported the signed application package and transferred it to your Google Nexus? If so, it should be installed.

Related

How to extract apk from android studio emulator

So my USB broke and I lost my android studio project. However, on the emulator, I still have my application, and I am able to run it. So my question is how do I extract my apk from this emulator.
I've read numerous threads however they were all about installation, and not extraction.
Thanks for your help :)
Use the Application mentioned in this url. You should be able to do it
http://www.androidapksfree.com/apk/shareit-android-apk-latest-download/

Program successfully installed but not displayed on device

I have just started programming on nexus 5 phone and sony smartwatch. I tired to install a sample program (HelloLayouts) on the device and it shows the following msg:
[HelloLayouts] Uploading HelloLayouts.apk onto device '.......'
[HelloLayouts] Installing HelloLayouts.apk... [HelloLayouts] Success!
[HelloLayouts] \HelloLayouts\bin\HelloLayouts.apk installed on device
[HelloLayouts] Done!
I checked applications from Smart connect but it doesn't show any installed program name hellolayoputs. I also checked the smartwatch, but didn't see any installed application. Not sure if I am missing anything.
any suggestion to solve this problem would be highly appreciated.
Just a few questions:
Did you modify the HelloLayouts sample file at all or did you just run the sample right after installing it? If you did modify it try creating a new sample from scratch and running it again.
Are you running your samples with Eclipse, or Android Studio, etc...?
Are you using the latest Android SDK v 23.0.2?
Also you may want to try restarting your phone and watch to see if you can at least see the app showing up in the SmartWatch 2 app.
May be Launcher Activity is missing or corresponding 'category' tag is missing from 'intent-filter' of launcher activity your Android Manifest file. Check it or post your AndroidManifest.xml file.

Installation error: INSTALL_FAILED_DEXOPT on Samsung S device

I've tried to run a project from eclipse on samsung s device,
i got Installation error: INSTALL_FAILED_DEXOPT
But i tried to run on other device Samsung S4, its installed successfully.
i've tried the like mention on below thread
INSTALL_FAILED_DEXOPT error when trying to install application
i've uninstalled all app. and cleaned the project on eclipse. but still i got error.
I've reset my phone too. but still the problem i have.
Where is the exact problem. in phone ? or eclipse project?
I have faced same problem.
Please check your library folder if you are using any http client and http mime library, remove http client library.
Its working for me after removing that library on 2.3 devices.
For me it was Google's Guava library that created the problem, removed it from my \libs folder and it all worked out.

Parse Error : There is a problem_ parsing the package(after signing the Android application)

I am getting the Parse error after downloading and while installing the apk file of my app on Android phones.
Before signing the app works fine on device.
Signing done from Eclipse Export wizard
Unknown Sources is checked in Settings >Security
Could you please suggest a possible solution for this.
Guys whoever is reading this post.....
I have solved this problem by re installing Eclipse and the SDK, ADT plugin etc.
My eclipse had some low memory issue and removing and reinstalling worked for me :)

Android application not running on Mac

i have made an android application on my windows machine. Now i am trying to test the application on my Mac. Everytime i do this i enounter the following problem:
how i do it
i copy pasted my project onto my mac desktop.
i imported the project into my Eclipse.
My application uses internet connection.Hence i have added the necessary permissions in my android.manifest file for accessing internet. I have tried and tested my app on emulator on windows system many times. But now if i run the same on my mac, the emulator gives connection error (hostunresolved exception)
another problem
when i try and change the OS version of Android on my project: By default my app has Android 2.2, when i change it to 2.1, it gives a .classpath file not found error and my app starts to have many errors.
what could be the reasons for the above happening?
thank you in advance.
Eclipse will work fine in Mac...
May be their is no internet connection on simulator..thats y you getting that error
Check a url in ur browser....Also did you try clean the project after changing the OS version

Categories

Resources