cannot resolve symbol MyObjectBox
Issue Basics
- ObjectBox version 1.1.0
- Reproducibility: [ always]
Reproducing the bug
Description
In application while initializing the boxstore getting this issue
Code
my root level gradle buildscript { ext { _buildToolsVersion = '26.0.1' _compileSdkVersion = 26 objectboxVersion = '1.1.0' } repositories { jcenter() mavenCentral() maven { url "http://objectbox.net/beta-repo/" } } dependencies { classpath 'com.android.tools.build:gradle:2.2.3' classpath 'com.google.gms:google-services:3.1.0' classpath "io.objectbox:objectbox-gradle-plugin:$objectboxVersion"
}
}
allprojects { repositories { jcenter() mavenCentral() maven { url 'https://maven.fabric.io/public' } maven { url "http://objectbox.net/beta-repo/" }
}
}
task clean(type: Delete) { delete rootProject.buildDir }
Did you check http://objectbox.io/faq/ --> Troubleshooting?
As I am new to android, I am unable to find out android-apt. Can you guide me, how to remove it?
@prashsb You probably did that, but just in case.
- Create any
@Entityclass, just for the ObjectBox to work with something - Click the build button
Now MyObjectBox should be there.
If you did that and I am stating the obvious, my apologies
Same problem here. I have just wasted 2 days on this. cannot resolve symbol myObjectBox. I cannot reference DaoSession as well.
@prashsb Did you resolve the issue using @alex199568's info?
@josephcaxton Did you resolve your issue meanwhile? If not, please post your Gradle files.
No
Joseph
On 7 Oct 2017, at 13:19, Markus Junginger [email protected] wrote:
@prashsb Did you resolve the issue using @alex199568's info?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.
@greenrobot my issue solved using @alex199568 info. Before creating box create entity class and build your project then create box.
@josephcaxton We would need your Gradle files to give you assistance.
No response, see #206 for MyObjectBox without entities.
I am also getting this issue, Not able to create MyObjectBox class internally. Please help
@tiwari-rajan You would have to explain what you are doing, etc. Also, please do not comment on this closed issue to avoid spamming the others. In your case it would be best if you post on stackoverflow.com. Thank you!
First, create some Entity class and try to build the project after that you can able to call.the MyObjectBox class
Done.. Thanks
You just need to import it to the class: If you look keenly you realize, its not referenced.
import com.example.project.MyObjectBox;