objectbox / objectbox-java

Android Database - first and fast, lightweight on-device vector database
https://objectbox.io
Apache License 2.0
4.4k stars 302 forks source link

[kotlin] AndroidObjectBrowser.start return false #517

Closed iago-silva closed 3 years ago

iago-silva commented 6 years ago
ObjectBox.build(this)
val result= AndroidObjectBrowser(ObjectBox.boxStore).start(this)
Log.d("debug", result.toString())
debugImplementation("io.objectbox:objectbox-android-objectbrowser:$objectboxVersion")
releaseImplementation "io.objectbox:objectbox-android:$objectboxVersion"
implementation "io.objectbox:objectbox-kotlin:$objectboxVersion"
greenrobot-team commented 6 years ago

Is this using ObjectBox version 2.0.0?

Your setup code and dependency configuration looks fine. Please have a look at the setup page and make sure you did not miss a step (applied plugin after deps, permission).

If this won't help we can only help if you share a small example project where we can reproduce this issue (creating one might also help you figure out what's wrong). -ut

greenrobot-team commented 6 years ago

No response, closing. Please re-open with more details or submit a new issue. -ut

danparn commented 3 years ago

Same problem persists on ver. 2.9.1 Demo attached ObjectBox.zip

greenrobot-team commented 3 years ago

@danparn Works fine with your given example project (I only updated Gradle to 6.8.3). Can you share any more details on how to reproduce this? E.g. what device do you use to test? Do you make sure to run the debug variant?

2021-06-28 15:09:55.822 5861-5861/com.iocoma.objectbox I/ObjectBrowser: ObjectBrowser started: http://127.0.0.1:8090/index.html
2021-06-28 15:09:55.822 5861-5861/com.iocoma.objectbox I/ObjectBrowser: Command to forward ObjectBrowser to connected host: adb forward tcp:8090 tcp:8090
2021-06-28 15:09:55.835 5861-5861/com.iocoma.objectbox I/ObjectBrowser: Started: true
2021-06-28 15:09:56.988 5861-5861/com.iocoma.objectbox I/ObjectBox: noteBox.all: [Note(id=1, text=This is a note, createdAt=Mon Jun 28 13:09:56 GMT 2021)]
danparn commented 3 years ago

@greenrobot-team Now it works for me too with gradle 6.7.1 (android gradle pluin 4.2.1). Thank you very much.