<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: ck1703</title>
    <description>The latest articles on DEV Community by ck1703 (@ck1703).</description>
    <link>https://dev.to/ck1703</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F679316%2F8cbea930-06ba-4819-959f-7430f58a78b7.png</url>
      <title>DEV Community: ck1703</title>
      <link>https://dev.to/ck1703</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ck1703"/>
    <language>en</language>
    <item>
      <title>D8: An API level of 31 is not supported by this compiler. Please use an API level of 30 or earlier</title>
      <dc:creator>ck1703</dc:creator>
      <pubDate>Tue, 01 Feb 2022 15:14:48 +0000</pubDate>
      <link>https://dev.to/ck1703/d8-an-api-level-of-31-is-not-supported-by-this-compiler-please-use-an-api-level-of-30-or-earlier-2m0f</link>
      <guid>https://dev.to/ck1703/d8-an-api-level-of-31-is-not-supported-by-this-compiler-please-use-an-api-level-of-30-or-earlier-2m0f</guid>
      <description>&lt;p&gt;i am building application for Android 12 device. JDk used ; 11. my gradle file looks like&lt;/p&gt;

&lt;p&gt;minSdkVersion 31&lt;br&gt;
buildToolsVersion "31.0.0"&lt;br&gt;
compileSdkVersion 31&lt;br&gt;
targetSdkVersion 31&lt;/p&gt;

&lt;p&gt;compileOptions {&lt;br&gt;
    sourceCompatibility JavaVersion.VERSION_1_8&lt;br&gt;
    targetCompatibility JavaVersion.VERSION_11&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;Still seeing D8: An API level of 31 is not supported by this compiler. Please use an API level of 30 or earlier&lt;/p&gt;

&lt;p&gt;ALso tried with 8. still same issue is seen &lt;/p&gt;

&lt;p&gt;compileOptions {&lt;br&gt;
    sourceCompatibility JavaVersion.VERSION_1_8&lt;br&gt;
    targetCompatibility JavaVersion.VERSION_1_8&lt;br&gt;
}&lt;/p&gt;

</description>
    </item>
    <item>
      <title>how to check databaseIntegrity Room database</title>
      <dc:creator>ck1703</dc:creator>
      <pubDate>Tue, 03 Aug 2021 14:14:12 +0000</pubDate>
      <link>https://dev.to/ck1703/how-to-check-databaseintegrity-room-database-5dgc</link>
      <guid>https://dev.to/ck1703/how-to-check-databaseintegrity-room-database-5dgc</guid>
      <description>&lt;p&gt;Is there any way to check integrity of the database at the start up, so that we can create new database if there any issue?&lt;/p&gt;

</description>
    </item>
    <item>
      <title> java.io.FileNotFoundException: Cannot find the schema file in the assets folder</title>
      <dc:creator>ck1703</dc:creator>
      <pubDate>Tue, 03 Aug 2021 11:28:18 +0000</pubDate>
      <link>https://dev.to/ck1703/java-io-filenotfoundexception-cannot-find-the-schema-file-in-the-assets-folder-6o5</link>
      <guid>https://dev.to/ck1703/java-io-filenotfoundexception-cannot-find-the-schema-file-in-the-assets-folder-6o5</guid>
      <description>&lt;p&gt;I am trying to test room database migration on robolectric . Robolectric version used 4.4. I am facing java.io.FileNotFoundException: Cannot find the schema file in the assets folder. Make sure to include the exported json schemas in your test assert inputs. See &lt;a href="https://developer.android.com/training/data-storage/room/migrating-db-versions#export-schema"&gt;https://developer.android.com/training/data-storage/room/migrating-db-versions#export-schema&lt;/a&gt; for details&lt;/p&gt;

&lt;p&gt;2021-08-03T17:50:07.733+0530 [DEBUG] [TestEventLogger]         at androidx.room.testing.MigrationTestHelper.loadSchema(MigrationTestHelper.java:320)&lt;br&gt;
2021-08-03T17:50:07.733+0530 [DEBUG] [TestEventLogger]         at androidx.room.testing.MigrationTestHelper.createDatabase(MigrationTestHelper.java:152)&lt;br&gt;
2021-08-03T17:50:07.733+0530 [DEBUG] [TestEventLogger]         at com.excelfore.esync.agent.test.PREH2_1259.sequence(PREH2_1259.java:64)&lt;br&gt;
2021-08-03T17:50:07.733+0530 [DEBUG] [TestEventLogger]         at com.excelfore.esync.agent.test.support.TestBase.lambda$runTestSequence$8(TestBase.java:433)&lt;/p&gt;

&lt;p&gt;Eventhough 1.json file present .&lt;/p&gt;

&lt;p&gt;build.gradle :&lt;/p&gt;

&lt;p&gt;javaCompileOptions {&lt;br&gt;
annotationProcessorOptions {&lt;br&gt;
arguments = ["room.schemaLocation": "$projectDir/build/schemas".toString()]&lt;br&gt;
}&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;sourceSets {&lt;br&gt;
release.assets.srcDirs += files("$projectDir/build/schemas".toString())&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;testImplementation "androidx.room:room-testing:2.2.6"&lt;/p&gt;

&lt;p&gt;Unit test code:&lt;/p&gt;

&lt;p&gt;private static final String TEST_DB = "migration-test";&lt;/p&gt;

&lt;p&gt;MigrationTestHelper helper = new MigrationTestHelper(InstrumentationRegistry.getInstrumentation(), ld + (MyDatabase.class.getCanonicalName()));&lt;br&gt;
SupportSQLiteDatabase db = helper.createDatabase(TEST_DB, 1);&lt;/p&gt;

&lt;p&gt;// Prepare for the next version.&lt;br&gt;
db.close();&lt;/p&gt;

&lt;p&gt;// Re-open the database with version 2 and provide&lt;br&gt;
// MIGRATION_1_2 as the migration process.&lt;br&gt;
db = helper.runMigrationsAndValidate(TEST_DB, 2, true, MyDatabase.MIGRATION_1_2);&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
