Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

456
Views
Android/Kotlin: Error: "Esperando una declaración de nivel superior > Tarea: aplicación: buildInfoGeneratorDebug"

Intento escribir una clase para administrar una base de datos SQLite, pero aparece el mensaje de error "Esperando una declaración de nivel superior> Tarea: aplicación: buildInfoGeneratorDebug".

 package com.xexxxwxxxxs.GMP import android.database.sqlite.SQLiteDatabase import android.database.sqlite.SQLiteOpenHelper import android.content.Context import android.content.ContentValues class DBHandler(context: Context, name: String?, factory: SQLiteDatabase.CursorFactory?, version: Int) : SQLiteOpenHelper(context, DATABASE_NAME, factory, DATABASE_VERSION) { override fun onCreate(db: SQLiteDatabase) { } override fun onUpgrade(db: SQLiteDatabase, oldVersion: Int, newVersion: Int) { } companion object { private val DATABASE_VERSION = 1 private val DATABASE_NAME = "GMP.db" } }

¿Tienes alguna idea?

Gracias por adelantado

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

Simplemente elimino la última llave y la escribo de nuevo. Esta funcionando :)

over 4 years ago · Santiago Trujillo Report

0

Lo mismo me sucedió a mí, solo necesita eliminar un corchete extra rizado generado automáticamente al final, luego funciona.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!