Android Development - Conversion to Dalvik format failed with error 1

前端 未结 5 1081
暗喜
暗喜 2021-01-21 11:55

So I\'m dipping my toes into this area for the first time - i followed instructions to install the android SDK and eclipse plug in. I created a blank new android project and I g

相关标签:
5条回答
  • 2021-01-21 12:07

    I fixed this - none of the above helped.

    What i did was delete eclipse, download the latest one and reinstalled the ADT plugin and it works now.

    0 讨论(0)
  • 2021-01-21 12:16

    I had the same problem: try to clean the project (Project -> Clean...). Eclipse will recreate the right bin directory.

    0 讨论(0)
  • 2021-01-21 12:30

    Simply edit the "project.properties" file and comment the line:

    proguard.config=proguard.cfg
    

    to be like the following:

    #proguard.config=proguard.cfg
    

    then clean the project. Hope this will export to APK successfully.

    0 讨论(0)
  • 2021-01-21 12:31

    This problem happens when the java files in the Eclipse project are not compiled to class files. The message indicates that the Android SDK cannot proceed to convert these classes to dalvik format because it could not find them. To solve this problem:

    1. Verify that the src folder is in your build path ( check under "Project Properties" -> "Java build path" ). If this is not the case right-click on the src folder, go to "Build path" and click on "Use as source folder".
    2. Verify that under "Project properties" -> "Builders" you can find "Java builder". If this is not the case close the project and with a text editor open the file .project present in the root folder of the project itself. Add under <buildSpec> the following lines:

      <buildCommand>
         <name>org.eclipse.jdt.core.javabuilder</name>
         <arguments></arguments>
      </buildCommand>
      

      After performing the actions described above, re-open the project and proceed to rebuild it by clicking on "Project" -> "Clean"

    0 讨论(0)
  • 2021-01-21 12:31

    The answer is detailed here. Try these steps, and it should work out.

    0 讨论(0)
提交回复
热议问题