Installation error: INSTALL_FAILED_DEXOPT on Samsung S device - android

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.

Related

Android Studio : The application could not be installed: SHELL_UNRESPONSIVE

i'm trying to install my app debug from my android studio. it's work well yesterday, but today when i try to install it again, the application cant be installed on my device and showing error like below on my android studio.
Installation did not succeed.
The application could not be installed: SHELL_UNRESPONSIVE
The device timed out while trying to install the application.
Retry
what should i do? i tried install on other device, and it worked fine. My device is Redmi 4X and other device is Samsung J3
Faced the same issue, not sure of the reason but in Android studio, Click on the File -> Invalidate Caches/ Restart and then it starts to work.
I got same issue with my device. i restart my device and its work properly.
The problem is because you don't have the proper SDK for the Android version. I'm telling you because a month has passed for me too. The solution is to download the appropriate pack in the SDK Manager.
If you have doubts how to enter:
Close the project.
In the welcome panel click on settings, then choose the SDK Manager option.
Click show package details and select the version for Android and choose all packages.
Finally you click ok XD
Try this method if it works perfect greetings
If other answers didn't help and previously application was installing correctly on your device, try to check your AndroidManifest file. Check that nothing forbids to install your app because of os version conflict or manifest merging errors or other reasons.
I came across this problem recently, through process of elimination I determined the cause was related to dependencies in the build.gradle(your app name).
I suggest working backwards and comment out everything that was added since the last known working build/install.
In my case I have a legacy app developed back in 2016 being rewritten, dependencies for signalR have changed quite a bit since then, the original libs where causing the install to fail while everything else seemed excellent, not even a single build error was occurring. Commenting out the libs and references got the application to a runnable state.
In my case, I deleted the emulator and recreated it. It solved the issue.
Before this, I had already tried following which did not work for me:
From menu: File->Invalidate cache/restart.
Deleting .cxx, .idea, .gradle, build folders and rebuilding.
Cold boot device emulator
Posting this in case someone is trapped in my kind of situation.

Android studio running app on Huawei G700 hangs at Uploading file

I know Android Studio is currently in beta, but still maybe somebody has a solution to this. Similar to Android studio running app on Samsung Galaxy S3 hangs at Uploading file I have issues when trying to run my app. It doesn't actually matter if its the physical phone or the android emulator.
I've tried with my app and a new empty project: same result. After compilation it tries to upload the app and just gets stuck. I've tried re-installation of Androidstudio and rebooting. Fun fact: on my laptop everything works just fine.
Any more ideas would be appreciated.
So actually it looks like something with the Platform tools was going wrong. A delete and install in the SDK Manager solved my issue. Weird, that the tools coming with the studio bundle are broken on my system.
Go to build and Rebuild your project. It will solve the problem.

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 :)

parsing the package error

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.

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