0

I am using Room library in one of my app, and when compiling my app it gives me below error:

\db\AppDatabase_Impl.java:393: error: code too large 
protected void validateMigration(SupportSQLiteDatabase _db) { 
^ 
Note: Some input files use or override a deprecated API. 
Note: Recompile with -Xlint:deprecation for details. 
1 error 
:app:compileDebugJavaWithJavac FAILED 
:app:buildInfoGeneratorDebug 

FAILURE: Build failed with an exception. 

* What went wrong: 
Execution failed for task ':app:compileDebugJavaWithJavac'. 
> Compilation failed; see the compiler error output for details.
(see full text)
Himanshu Dudhat
  • 1,609
  • 3
  • 14
  • 27

1 Answers1

-2
protected void validateMigration(SupportSQLiteDatabase _db)

Some input files use or override a deprecated API. 

This is your error, go through that method and remove any calls to deprecated api then it should run

Brandon
  • 1,158
  • 3
  • 12
  • 22