AndroidIDEOfficial / AndroidIDE

AndroidIDE is an IDE for Android to develop full featured Android apps.
https://m.androidide.com
GNU General Public License v3.0
2.09k stars 250 forks source link

databinding.ActivityMainBinding fails resolution #1775

Closed ihtarlik closed 3 months ago

ihtarlik commented 3 months ago

Issue Checklist

Additional terms

Issue explanation

I can open any project or create a project from the template choices, and everything works fine until I attempt to open MainActivity.java. Then the IDE informs me the "package com.example.myapplication.databinding.ActivityMainBinding does not exist." This occurs even in a fresh template (I have tried several), but also in other projects previously developed under AndroidIDE. I tried removing AndroidIDE entirely and reinstalling from scratch, and got the same result, even using the previous two versions of the app.

Expected behavior

I expect it to be able to locate the package under development and its XML layouts.

Version name

Version : v2.7.1-beta (27102) CI Build : false Branch : HEAD Commit : 55bb46b31 Variant : arm64-v8a (release) Build type : OFFICIAL F-Droid Build : true F-Droid Version : v2.7.1-beta F-Droid Version code : 27102 SDK Version : 33 Supported ABIs : [arm64-v8a, armeabi-v7a, armeabi] Manufacturer : Google Device : Pixel5

Download source

F-Droid

Relevant log output

No response

ihtarlik commented 3 months ago

Screenshot_20240324-165818_Trebuchet

ihtarlik commented 3 months ago

Screenshot_20240324-174907_Trebuchet

MrIkso commented 3 months ago

You must first build project, it autogenerate classes

ihtarlik commented 3 months ago

I can build the project just fine, but the IDE still says that class doesn't exist. See below:

Screenshot_20240327-132604_Trebuchet

ihtarlik commented 3 months ago

This is from the Basic Project template: Screenshot_20240327-132849_Trebuchet

ihtarlik commented 3 months ago

I upgraded to LineageOS 21 from 20, and the problem appears to have resolved itself. Annoyingly random solution...