티스토리 뷰

Unable to execute dex: java.nio.BufferOverflowException. Check the Eclipse log for stack trace.
Conversion to Dalvik format failed: Unable to execute dex: java.nio.BufferOverflowException. Check the Eclipse log for stack trace.에러 해결방법



If you have recently added any Android library project or upgraded to a newer version of  Android SDK build tools and you have got an  unable to execute error then this post is for you. You might have got this error even if you are trying to import an existing Android project or if you are working with android librrary. For example google play services.

There are two approaches to solve the conversion to Dalvik format failed error.

  1. Downgrading to Android SDK build tools 18.1.1
  2. Adding the support library.

Now its up to you, how you want to fix the project.

Downloading Android SDK build tools 18.1.1

In eclipse, go to

 

Now uninstall Android SDK build tools 19

 

solve_error1

 

Now Install Android SDK build tools 18.1.1

After successful installation, restart eclipse and now error will be fixed.

If you want to solve the “Conversion to Dalvik format error” without uninstalling android SDK tools, then you need to add(update) the support library.

 

Adding the support library.

 

Right click on your project and go to “libs” folder. Delete the android-support-v4 file from the project.

 solve_error2

 

Now add support library again by following these steps.

Updated library would be downloaded.

solve_error3

 

Now clean your project.

If error still occurs then delete all projects from project explorer and workspace. And create a new project and delete the support library and add it again by following the above steps.  Now conversion to Dalvik will not fail.

If you still have any error then feel free to share. If you have any suggestions, please feel free to tell me.

 


댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함