Join FlipAndroid.COM Telegram Group: https://t.me/joinchat/F_aqThGkhwcLzmI49vKAiw


La anotación sólo está disponible para java 1.5 y superior cuando se genera Google App Engine Backend (JDK 1.8, nuevo ADT instalado)

Instalé ADT fresco: http://developer.android.com/sdk/index.html?hl=sk Entonces instalé:

Introduzca aquí la descripción de la imagen

Cuando entré en el directorio readme de Eclipse hay:

Notas de la versión de Eclipse Project

Versión 4.3.0 Última revisión 29 de mayo de 2013

Creé nueva aplicación de Android y luego clic derecho en él-> Google-> Generar Google App Engine Backend y esto es lo que tengo:

Description Resource Path Location Type The import android.os.Build is never used MainActivity.java /A/src/com/uniquebullshit/a line 12 Java Problem Syntax error, annotations are only available if source level is 1.5 or greater MessageData.java /A-AppEngine/src/com/uniquebullshit/a line 22 Java Problem Syntax error, annotations are only available if source level is 1.5 or greater DeviceInfoEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 21 Java Problem Syntax error, annotations are only available if source level is 1.5 or greater MessageData.java /A-AppEngine/src/com/uniquebullshit/a line 28 Java Problem Syntax error, annotations are only available if source level is 1.5 or greater DeviceInfoEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 21 Java Problem Syntax error, annotations are only available if source level is 1.5 or greater MessageData.java /A-AppEngine/src/com/uniquebullshit/a line 29 Java Problem The import android.support.v7.app.ActionBar is never used MainActivity.java /A/src/com/uniquebullshit/a line 4 Java Problem Syntax error, annotations are only available if source level is 1.5 or greater DeviceInfo.java /A-AppEngine/src/com/uniquebullshit/a line 25 Java Problem Syntax error, annotations are only available if source level is 1.5 or greater DeviceInfo.java /A-AppEngine/src/com/uniquebullshit/a line 33 Java Problem Syntax error, annotations are only available if source level is 1.5 or greater MessageEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 46 Java Problem Syntax error, annotations are only available if source level is 1.5 or greater MessageEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 46 Java Problem Syntax error, parameterized types are only available if source level is 1.5 or greater MessageEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 98 Java Problem The method setMaxResults(int) in the type Query is not applicable for the arguments (Integer) MessageEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 95 Java Problem Syntax error, parameterized types are only available if source level is 1.5 or greater MessageEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 112 Java Problem Syntax error, 'for each' statements are only available if source level is 1.5 or greater MessageEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 105 Java Problem Syntax error, annotations are only available if source level is 1.5 or greater MessageEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 127 Java Problem Syntax error, annotations are only available if source level is 1.5 or greater MessageEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 126 Java Problem The method listDeviceInfo(String, Integer) in the type DeviceInfoEndpoint is not applicable for the arguments (null, int) MessageEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 142 Java Problem Syntax error, parameterized types are only available if source level is 1.5 or greater MessageEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 142 Java Problem Syntax error, annotations are only available if source level is 1.5 or greater MessageEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 74 Java Problem Syntax error, annotations are only available if source level is 1.5 or greater MessageEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 73 Java Problem Syntax error, annotations are only available if source level is 1.5 or greater MessageEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 76 Java Problem Syntax error, parameterized types are only available if source level is 1.5 or greater MessageEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 75 Java Problem Syntax error, annotations are only available if source level is 1.5 or greater MessageEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 77 Java Problem Syntax error, annotations are only available if source level is 1.5 or greater MessageEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 76 Java Problem Syntax error, parameterized types are only available if source level is 1.5 or greater MessageEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 81 Java Problem Syntax error, annotations are only available if source level is 1.5 or greater MessageEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 77 Java Problem Syntax error, annotations are only available if source level is 1.5 or greater DeviceInfoEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 140 Java Problem Type mismatch: cannot convert from Object to DeviceInfo DeviceInfoEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 143 Java Problem Syntax error, annotations are only available if source level is 1.5 or greater DeviceInfoEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 119 Java Problem Syntax error, annotations are only available if source level is 1.5 or greater DeviceInfoEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 139 Java Problem Type mismatch: cannot convert from Object to DeviceInfo DeviceInfoEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 154 Java Problem There was a problem generating the API metadata for your Cloud Endpoints classes: com.google.api.server.spi.config.ApiConfigException: class com.uniquebullshit.a.MessageEndpoint has no @Api annotation. A-AppEngine Unknown Google App Engine Cloud Endpoints Problem Marker Type mismatch: cannot convert from element type Object to DeviceInfo MessageEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 144 Java Problem Syntax error, 'for each' statements are only available if source level is 1.5 or greater MessageEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 144 Java Problem Syntax error, parameterized types are only available if source level is 1.5 or greater DeviceInfoEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 33 Java Problem Syntax error, annotations are only available if source level is 1.5 or greater DeviceInfoEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 34 Java Problem Syntax error, annotations are only available if source level is 1.5 or greater DeviceInfoEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 31 Java Problem Syntax error, annotations are only available if source level is 1.5 or greater DeviceInfoEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 32 Java Problem Syntax error, annotations are only available if source level is 1.5 or greater DeviceInfoEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 35 Java Problem Syntax error, parameterized types are only available if source level is 1.5 or greater DeviceInfoEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 39 Java Problem Syntax error, annotations are only available if source level is 1.5 or greater DeviceInfoEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 34 Java Problem Syntax error, annotations are only available if source level is 1.5 or greater DeviceInfoEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 35 Java Problem Syntax error, 'for each' statements are only available if source level is 1.5 or greater DeviceInfoEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 60 Java Problem Syntax error, parameterized types are only available if source level is 1.5 or greater DeviceInfoEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 65 Java Problem The method setMaxResults(int) in the type Query is not applicable for the arguments (Integer) DeviceInfoEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 51 Java Problem Syntax error, parameterized types are only available if source level is 1.5 or greater DeviceInfoEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 54 Java Problem Type mismatch: cannot convert from Object to DeviceInfo DeviceInfoEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 82 Java Problem Syntax error, annotations are only available if source level is 1.5 or greater DeviceInfoEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 97 Java Problem Syntax error, annotations are only available if source level is 1.5 or greater DeviceInfoEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 77 Java Problem Syntax error, annotations are only available if source level is 1.5 or greater DeviceInfoEndpoint.java /A-AppEngine/src/com/uniquebullshit/a line 78 Java Problem 

¿Cómo lidiar con eso? EDITAR:

Introduzca aquí la descripción de la imagen

  • ¿Cómo utilizar la cuenta de google en tu propia aplicación de Android?
  • No se puede importar la clase de biblioteca de cliente de nodos de nube de google en el proyecto de Android
  • Google Volley lib con los puntos finales de Appengine autenticados?
  • Qué es "serviceAccountKey.json" que se refiere en el tutorial de notificaciones de dispositivo a dispositivo de Firebase
  • GCM duplicó mensajes
  • Gradlew appengineEndpointsInstallClientLibs tiene error La ejecución falló para la tarea ': compileJava'. > Versión de origen no válida: 1.7
  • Google Cloud Messaging para Android Library no se encuentra en el administrador de sdk
  • El método de punto final de Google mantiene la devolución "nombre no debe estar vacío" excepción
  • 5 Solutions collect form web for “La anotación sólo está disponible para java 1.5 y superior cuando se genera Google App Engine Backend (JDK 1.8, nuevo ADT instalado)”

    Intenté abajo y ayudó.

    1. Marque la casilla de verificación Use default compliance settings como en la sección resaltada (color azul) de la imagen de abajo.
    2. Si eso no ayudó, trate de cambiar el Compiler compliance level del Compiler compliance level a otro nivel, presione aplicar y luego volver.

    Introduzca aquí la descripción de la imagen

    Para mi, la casilla Activar configuración específica del proyecto no estaba seleccionada. Lo seleccioné y limpiar el proyecto a través del menú Proyecto .

    La respuesta mencionada por Stultuske en [ eclipse magic: … Error de sintaxis, varargs sólo están disponibles si el nivel de fuente es 1,5 o superior lo resolvió.

    Bajo Mac OS X

    • Instale el Java 6 JDK
    • Ir a Eclipse> Preferencias
    • Seleccione Añadir … desde Java> JRE instalados y, a continuación, la VM estándar y seleccione el directorio '/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home' como casa JRE y, a continuación, Finish, Ok

    Tenía un problema similar.

    Comprobé la versión Java JDK en "Java Build Path".

    Comprobé los niveles de cumplimiento bajo "Java Compiler".

    Miré Project Facets y vi que Java no estaba marcado. Comprobando que resolvió el problema (una vez que el proyecto reconstruido).

    Introduzca aquí la descripción de la imagen

    Asegúrese de que el nivel de fuente es 1,5 o superior. Parece que está utilizando una versión anterior del JDK.

    FlipAndroid es un fan de Google para Android, Todo sobre Android Phones, Android Wear, Android Dev y Aplicaciones para Android Aplicaciones.