question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Table classes generated with "package package" on first line - jack/java8/gradle2.2

See original GitHub issue

DBFlow Version: 4.0.0-beta1 Issue Kind (Bug, Question, Feature): Bug

Description:

Generated table code seems to be including the word package twice e.g.

package package com.project.model;

Forgive me if this is just a configuration error, but I wondered if it’s something to do with the setup which is:

  • gradle:2.2.2
  • jack compiler enabled for Java 8 support

My build file looks like this:

    compileSdkVersion 25
    buildToolsVersion "24.0.2"
    defaultConfig {
        applicationId "com.project"
        minSdkVersion 19
        targetSdkVersion 24
        versionCode 1
        versionName "0.1"
        jackOptions {
            enabled true
        }
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }

   ... 

  dependencies {
    ...
    annotationProcessor "com.github.Raizlabs.DBFlow:dbflow-processor:4.0.0-beta1"
    compile "com.github.Raizlabs.DBFlow:dbflow-core:4.0.0-beta1"
    compile "com.github.Raizlabs.DBFlow:dbflow:4.0.0-beta1"
  }

I’m also using Lombok. I’ve tried cleaning etc, but it always seems to include the word “package” twice.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:3
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

7reactions
agrosnercommented, Nov 13, 2016

Jack compiler is not tested/supported yet. I am going to look into it to see what the issue is. Most likely a JavaPoet issue.

5reactions
ScottCooper92commented, Dec 8, 2016

Do you have an update on this? I’m starting a new project and would like to use Jack + DBFlow.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Packages in Java: How to Create/Import Package - Guru99
A Package is a collection of related classes. Learn how to create Package in Java with example program in this tutorial.
Read more >
Creating a Package (The Java™ Tutorials > Learning the Java ...
The package statement (for example, package graphics; ) must be the first line in the source file. There can be only one package...
Read more >
How to Create and Use Packages in Java? | Edureka
Packages in Java are a way to encapsulate a group of classes, interfaces, enumerations, ... The first line of the code import java.util....
Read more >
Packages In Java - GeeksforGeeks
Package in Java is a mechanism to encapsulate a group of classes, sub packages and interfaces. Packages are used for:.
Read more >
Do I have to use "package" term in every class? - java
When I put package first; line to top line of my Java class it runs. But, the book isn't using package term. Is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found