-
Notifications
You must be signed in to change notification settings - Fork 305
Open
Labels
bugSomething isn't workingSomething isn't workingmore info requiredFurther information is requestedFurther information is requested
Description
Build info
Android Studio Otter | 2025.2.1
- ObjectBox version: [ 4.0.1 or 5.0.1]
- OS: [ Android 15 SDK 35 ]
- version: [
'com.android.tools.build:gradle:8.1.0'
https://services.gradle.org/distributions/gradle-8.0-bin.zip
] - Device/ABI/architecture: [ One plus 8T | arm64-v8a | x86-64 ]
Actual behavior
TODO Tell us what actually happens.
I originally wanted to use ObjectBox with SDK version 34 and AGP version 7.4, but Google now requires new applications to be uploaded with SDK version 35, and SDK version 35 requires AGP 8.0 or higher to work. However, after upgrading to SDK 35, ObjectBox stops working, displaying an error message that MyObjectBox cannot be found, and the generated entity classes cannot be found either. If I revert to SDK version 34, it works fine, but Google requires SDK 35. Therefore, I need your help.
Code
TODO Add a code example to help us reproduce your problem.
Code
[
MyObjectBox.builder().androidContext(BWNApplication.applicationContext).build();
public static GoogleOrder getGoogleOrder(GoogleOrder googleOrder) {
try {
BoxStore boxStore = init();
if (boxStore != null && !boxStore.isClosed()) {
Box<GoogleOrder> box = boxStore.boxFor(GoogleOrder.class);
return box.query()
.equal(GoogleOrder_.productToken, googleOrder.productToken.getBytes())
.build().findFirst();
}
} catch (Exception e) {
}
return null;
}
public static List<ComicChapter> getcomicDownOptionList(long comic_id) {
try {
BoxStore boxStore = init();
if (boxStore != null && !boxStore.isClosed()) {
Box<ComicChapter> box = boxStore.boxFor(ComicChapter.class);
List<ComicChapter> joes = box.query()
.equal(ComicChapter_.comic_id, comic_id)
.equal(ComicChapter_.downStatus, 1)
.build().find();
return joes;
}
} catch (Exception e) {
}
return new ArrayList<>();
}
]Logs, stack traces
TODO Add relevant logs, a stack trace or crash report.
Logs
[
> Task :app:compileDebugJavaWithJavac
J:\AndroidProject\LavaNovel\app\src\main\java\com\lavanovel\lavaapp\base\BWNApplication.java:23: Error: Symbol not found
import com.lavanovel.lavaapp.MyObjectBox;
^
Symbol: Class MyObjectBox
Location: Package com.lavanovel.lavaapp
J:\AndroidProject\LavaNovel\app\src\main\java\com\lavanovel\lavaapp\utils\ObjectBoxUtils.java:3: Error: Symbol not found
import com.lavanovel.lavaapp.MyObjectBox;
^
Symbol: Class MyObjectBox
Location: Package com.lavanovel.lavaapp
J:\AndroidProject\LavaNovel\app\src\main\java\com\lavanovel\lavaapp\utils\ObjectBoxUtils.java:7: Error: Symbol not found
import com.lavanovel.lavaapp.model.ComicChapter_;
]Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingmore info requiredFurther information is requestedFurther information is requested