Android Development - Conversion to Dalvik format failed with error 1

前端 未结 5 1093
暗喜
暗喜 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: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 the following lines:

      
         org.eclipse.jdt.core.javabuilder
         
      
      

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

提交回复
热议问题