68917

Solving install error dexopt

Question:

Even though there are several posts about dexopt errors none of them helped. I suddenly started to receive dexopt errors : Failure [INSTALL_FAILED_DEXOPT]. Ive tried uninstalling the app from my phone but it didnt help. Ive tried to wipe app data from /data/data/ and it didnt help either. However, if i run for second time after install failed dexopt error, i receive an Failure [INSTALL_FAILED_UID_CHANGED] error. After wiping /data/data again comes the same error sequence explained above.

Ive also tried to wipe temp folder as well with no difference in results. Ive also tried to wipe all other apps that ive installed through android studio and it still gives me same error. Any ideas? I am installing in on rooted LG G2 if it makes any difference at all.

Answer1:

if you use android studio 2.0, DISABLE the instant run.

FYI, instant run is new feature from android studio 2.0 (i never used it >.<)

how to disable : preferences -> build, execution & deployment -> instant run -> disable, then works like magic

Enjoy!

Answer2:

Found solution to this problem. I installed Titanium Backup app, went to batch actions and removed the orphan data of the app. After this everything went on smoothly! It seems that deleting old data from /data/data was not enough.

Recommend

  • How do I write to a specific line of file in c?
  • Solr copy data from “crawler” core into “search” core
  • Android Studio Emulator Screen is “Scratched” and distored
  • Jekyll Wiping My Directory
  • Google Scripts for Sheets - onEdit and “source”
  • How to make local USB port to work with Azure virtual machine
  • Change title language PlacePicker
  • iOS - How to access the device's file library?
  • Why does this code crash on the distributed app but work in the debugger?
  • How can i automate 'Settings' app in real iOS devices?
  • Get last insert id of Postgresql
  • Is it possible to generate a unique numeric value for each row in an iSeries table without looping?
  • draw pie chart using iOS quartz 2D
  • Sliding transition animation between Screens in Caliburn Micro
  • How to blur the specific part of image without using Render Script,as my minsdk is 14.
  • C++ - Is destructor called when a vector holds objects?
  • GRPC and types import error in App Engine Datastore
  • How to use SBT with multiple sub project web applications?
  • Zend Framework bassed projects
  • OSX - always hide certain files
  • Compiling dlib on OS X
  • How to generate and display a QR Code in ionic 2
  • Problems installing Yesod for Haskell
  • Unable to install Git-core+svn by MacPorts
  • Make VS2015 use angular-cli ng at build time in a .NET project
  • VSO Build — Response status code does not indicate success: 404 (Not Found)
  • ilmerge with a PFX file
  • Does CUDA 5 support STL or THRUST inside the device code?
  • Perl system calls when running as another user using sudo
  • SVN: Merging two branches together
  • Hibernate gives error error as “Access to DialectResolutionInfo cannot be null when 'hibernate.
  • Hits per day in Google Big Query
  • Why joiner is not used after Sequence generator or Update statergy
  • FormattedException instead of throw new Exception(string.Format(…)) in .NET
  • How to CLICK on IE download dialog box i.e.(Open, Save, Save As…)
  • Can Visual Studio XAML designer handle font family names with spaces as a resource?
  • Linking SubReports Without LinkChild/LinkMaster
  • How can I remove ASP.NET Designer.cs files?
  • Are Kotlin's Float, Int etc optimised to built-in types in the JVM? [duplicate]
  • XCode 8, some methods disappeared ? ex: layoutAttributesClass() -> AnyClass