Borrado gen carpeta, eclipse no lo está generando ahora :(
He borrado accidentalmente mi carpeta gen y ahora, predeciblemente, mis recursos están desordenados. Acabo de crear una carpeta gen yo mismo y trató de proyecto> limpio – que no funcionó. Intentó hacer clic derecho en el proyecto y ir a las herramientas de Android> fijar las propiedades del proyecto – no funcionó. Intentado desconexión construir automáticamente … no funcionó. Limpiado, proyecto cerrado, eclipse cerrado, reiniciado, etc, etc. Nada funciona y sigo viendo este error: gen already exists but is not a source folder. Convert to a source folder or rename it.
gen already exists but is not a source folder. Convert to a source folder or rename it.
EDIT – OK fue capaz de generar R.java, pero ahora estoy consiguiendo cosas locas en la consola:
- ¿Por qué el tamaño androide de apk difiere cuando se construye desde windows y mac
- No se puede cmd + hacer clic en el método Java en Eclipse en Mountain Lion
- Abrir un proyecto en Eclipse
- Cómo depurar un servicio de fondo de Android?
- Tengo problemas para añadir OpenCV a un nuevo proyecto de Android
[2011-06-14 17:06:11 – fastapp] La conversión al formato de Dalvik falló con el error 1 [2011-06-14 17:06:42 – fastapp] Problema de Dx que procesa "java / awt / font / NumericShaper.class" :
Ill-advised or mistaken usage of a core class (java.* or javax.*) when not building a core library. This is often due to inadvertently including a core library file in your application's project, when using an IDE (such as Eclipse). If you are sure you're not intentionally defining a core class, then this is the most likely explanation of what's going on. However, you might actually be trying to define a class in a core namespace, the source of which you may have taken, for example, from a non-Android virtual machine project. This will most assuredly not work. At a minimum, it jeopardizes the compatibility of your app with future versions of the platform. It is also often of questionable legality. If you really intend to build a core library -- which is only appropriate as part of creating a full virtual machine distribution, as opposed to compiling an application -- then use the "--core-library" option to suppress this error message. If you go ahead and use "--core-library" but are in fact building an application, then be forewarned that your application will still fail to build or run, at some point. Please be prepared for angry customers who find, for example, that your application ceases to function once they upgrade their operating system. You will be to blame for this problem. If you are legitimately using some code that happens to be in a core package, then the easiest safe alternative you have is to repackage that code. That is, move the classes in question into your own package namespace. This means that they will never be in conflict with core system classes. JarJar is a tool that may help you in this endeavor. If you find that you cannot do this, then that is an indication that the path you are on will ultimately lead to pain, suffering, grief, and lamentation. [2011-06-14 17:06:42 - fastapp] Dx 1 error; aborting [2011-06-14 17:06:42 - fastapp] Conversion to Dalvik format failed with error 1
Y eclipse no puede resolver la importación de mis recursos de
import com.me.fastapp.R;
- "Se ha producido un error al activar automáticamente el paquete com.android.ide.eclipse.adt"
- VMDisconnectedException durante la depuración de la aplicación de Android
- Android con Eclipse - Esperando que HOME ('android.process.acar') sea lanzado?
- Aplicación de streaming de radio en línea para Android
- Scrollview con paginación en android
- Código de la versión de incremento automático en la aplicación para Android
- Android Building Workspace Error
- Desplazamiento del cuadro de selección de tiempo en Samsung S4 OS 4.3
- Haga clic derecho en su proyecto
- Seleccione propiedades.
- Seleccionar ruta de compilación de Java
- Haga clic en Agregar carpeta
- Seleccione la carpeta gen
- Haga clic en Aceptar.
No sé si esto califica como una respuesta, pero finalmente levanté mis manos y volví a mi último compromiso.
Tuve el mismo problema hoy después de actualizar mi SDK a v22 y ADT a la versión más reciente. Aparentemente, mi SDK Manager no detectó que también hubo cambios en SDK Platform-Tools y las herramientas de construcción SDK recién introducidas, por lo que no actualizó las herramientas, haciendo que mi paquete SDK / ADT no generara contenido de la carpeta / gen dentro de Eclipse.
Tuve que volver al SDK Manager después de actualizar tanto SDK y ADT, por lo que me ofrecería las opciones para instalar / actualizar SDK Platform-tools a 17 (de 16 tuve) y SDK Build-tools (también 17).
Probablemente hay un problema con la preparación de la clase R (por ejemplo, debido al error en algún formato xml). Dé vuelta a la salida del constructor a "verbose" de Preferencias y vea en la consola donde se rompe la generación.