Fixed
Status Update
Comments
ij...@gmail.com <ij...@gmail.com> #2
deleted
ne...@gmail.com <ne...@gmail.com> #4
Thank you for your patience while our engineering team worked to resolve this issue. A fix for this issue is now available in:
- Android Studio Koala | 2024.1.1 Canary 8
- Android Gradle Plugin 8.5.0-alpha08
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
Thank you for taking the time to submit feedback — we really appreciate it!
wu...@gmail.com <wu...@gmail.com> #6
Hi guys,
I met this trouble in Canary 9. Then I tried with 8 & 6 but they show the same error as well.
Are all of the 3.0 preview versions influenced by this issue?
And will you resolve this problem before the stable release version?
Thx.
I met this trouble in Canary 9. Then I tried with 8 & 6 but they show the same error as well.
Are all of the 3.0 preview versions influenced by this issue?
And will you resolve this problem before the stable release version?
Thx.
vi...@gmail.com <vi...@gmail.com> #7
is there any eta for any fix? we are on beta 1 and the issue is not fixed yet.
For instant apps, fixing this is a must.
thanks
For instant apps, fixing this is a must.
thanks
vi...@gmail.com <vi...@gmail.com> #8
Android Studio Beta 2 still has this problem.
ne...@gmail.com <ne...@gmail.com> #9
I've just switch feature-modules to library-modules while it is not fixed
vi...@gmail.com <vi...@gmail.com> #10
Thanks, I just did that. This means that we cannot ship instant apps, but anyway I would rather wait till this problem is stabilized.
pa...@google.com <pa...@google.com> #11
Any update on ETA for fix? this bug also affects our automated tests.
da...@gmail.com <da...@gmail.com> #12
any oficial comment about this ? .. any suggested workaround ? like creating a helper on base module just to create the databinding ?
yb...@google.com <yb...@google.com> #13
Sorry. Unfortunately features and data-binding has some inherited inconsistency so it is not trivial to support data-binding.
We are changing data binding's build process to support this new model but it requires significant changes (some of which are backward incompatible).
There is not an ETA yet but we are planning to get this in after 3.0.
We are changing data binding's build process to support this new model but it requires significant changes (some of which are backward incompatible).
There is not an ETA yet but we are planning to get this in after 3.0.
[Deleted User] <[Deleted User]> #14
I'm trying to implement instant app at our app, but we have used data binding in many places. Right now only works with alpha8. Have you some solution any time soon?
yb...@google.com <yb...@google.com> #15
we are shooting for early 3.1 (one of the alpha releases).
fh...@gmail.com <fh...@gmail.com> #16
Could you not at least set up a gradle or AS option to still allow building of projects that have data binding on. We have it on in features, where it works just fine, we would prefer to be able to use something past canary 8 for our instant app.
pa...@gmail.com <pa...@gmail.com> #17
Is it still a issue? should just quit AIA(anroid instant app) learning?
Also there are other issues with AIA--
1. many of devices are not whitelisted for AIA.
2. I just created an AIA with template provided in Android Studio, uploaded assetlinks.json to server but as I try to upload instant-release.zip on playstore it says "You should use both http and https as schemes for your web intent-filters.". I have followed all links and included both http and https(like thishttps://stackoverflow.com/a/44623356/7062071 ) but got same error.
Why Instant Apps is so much pain in ass??????
Also there are other issues with AIA--
1. many of devices are not whitelisted for AIA.
2. I just created an AIA with template provided in Android Studio, uploaded assetlinks.json to server but as I try to upload instant-release.zip on playstore it says "You should use both http and https as schemes for your web intent-filters.". I have followed all links and included both http and https(like this
Why Instant Apps is so much pain in ass??????
vi...@gmail.com <vi...@gmail.com> #18
"You should use both http and https as schemes for your web intent-filters." I tried to report this issue, but I was not able to follow up: https://issuetracker.google.com/issues/62688691
yb...@google.com <yb...@google.com> #19
#17, there is a fundamental conflict between how AIA works and data binding compiles.
Data binding always re-generates code in the app level but in AIA, modules must have all necessary code.
In 3.1, we are going to change data binding compilation to generate final classes for modules expect for the BR class.
Then we'll do an integration w/ AIA to get ranges for BR files so that we can generate them as final as well.
This is a major change in data binding so will take a while.
Data binding always re-generates code in the app level but in AIA, modules must have all necessary code.
In 3.1, we are going to change data binding compilation to generate final classes for modules expect for the BR class.
Then we'll do an integration w/ AIA to get ranges for BR files so that we can generate them as final as well.
This is a major change in data binding so will take a while.
yb...@google.com <yb...@google.com> #20
should we mark this as duplicate of 62301277 ?
fd...@google.com <fd...@google.com> #21
This bug is the public one, I'd like to keep it open to communicate updates and resolution publicly.
On that note, Android Studio Canary 3.1 is available. In this version, you will be able to add "android.enableExperimentalFeatureDatabinding=true" to your gradle.properties file to bypass the databinding disabling check. Doing so is not officially supported. For the most part, actual databinding will only work with resources in the base feature. Any attempt at using databinding with a resource not in the base feature will cause the app to crash at runtime. Note, we offer no guarantee that databinding will work correctly with resources in the base feature either until we have a proper resolution.
On that note, Android Studio Canary 3.1 is available. In this version, you will be able to add "android.enableExperimentalFeatureDatabinding=true" to your gradle.properties file to bypass the databinding disabling check. Doing so is not officially supported. For the most part, actual databinding will only work with resources in the base feature. Any attempt at using databinding with a resource not in the base feature will cause the app to crash at runtime. Note, we offer no guarantee that databinding will work correctly with resources in the base feature either until we have a proper resolution.
ru...@gmail.com <ru...@gmail.com> #22
#21 still this issue coming with Studio Canary 3.1 "Error:com.android.builder.internal.aapt.AaptException: A dependent feature was defined but no package ID was set. You are probably missing a feature dependency in the base feature."
fd...@google.com <fd...@google.com> #23
#22 this is a different issue. It sounds like you are missing a dependency definition or baseFeature definition somewhere. If you cannot solve it, could you file another bug?
zd...@chewy.com <zd...@chewy.com> #24
I haven't seen an update here in awhile. Is the fix still targeted for 3.1 release?
yb...@google.com <yb...@google.com> #25
we are working on it but it requires a major change in data binding :/. We will release a big chunk of it in 3.1 canary6 as an optional flag and if it goes well, we'll start adding instant apps on top of it. We might miss 3.1 but hoping to catch an early 3.2.
zd...@chewy.com <zd...@chewy.com> #26
Looking forward to it - thanks for the update!
ko...@gmail.com <ko...@gmail.com> #27
Tried to use databinding inside non base feature with
* Android Studio 3.1 Canary 5
* android.enableExperimentalFeatureDatabinding=true.
Having activity_login.xml and reference (import & variable) of LoginActivitytBinding.java inside my activity gives me a compilation error:
e: /project_path/activity/LoginActivity.kt: (13, 25): Unresolved reference: databinding
e: /project_path/activity/LoginActivity.kt: (38, 36): Unresolved reference: LoginActivitytBinding
Error: Line 13 to import
Error line 36 to variable declaration.
P.S. If I remove this reference. it runs with <layout> & <data> usage inside activity_login.xml
* Android Studio 3.1 Canary 5
* android.enableExperimentalFeatureDatabinding=true.
Having activity_login.xml and reference (import & variable) of LoginActivitytBinding.java inside my activity gives me a compilation error:
e: /project_path/activity/LoginActivity.kt: (13, 25): Unresolved reference: databinding
e: /project_path/activity/LoginActivity.kt: (38, 36): Unresolved reference: LoginActivitytBinding
Error: Line 13 to import
Error line 36 to variable declaration.
P.S. If I remove this reference. it runs with <layout> & <data> usage inside activity_login.xml
[Deleted User] <[Deleted User]> #28
So I am using Android Studio 3.0.1 official version. Wanted to know the update of this issue. Has there been any official resolve for making databinding work with instant apps?
de...@gmail.com <de...@gmail.com> #29
also espresso test has problem with multi-modules if some databindings in module or feature or app etc.
well, anyway the databinding doesn't work well when the app would be splited in to different modules(library or feature).
some error like
java.lang.NoClassDefFoundError: Failed resolution of: Landroid/databinding/DataBinderMapperImpl;
at android.databinding.DataBindingUtil.<clinit>(DataBindingUtil.java:32)
while using espresso to test some ui.
well, anyway the databinding doesn't work well when the app would be splited in to different modules(library or feature).
some error like
java.lang.NoClassDefFoundError: Failed resolution of: Landroid/databinding/DataBinderMapperImpl;
at android.databinding.DataBindingUtil.<clinit>(DataBindingUtil.java:32)
while using espresso to test some ui.
[Deleted User] <[Deleted User]> #31
Yea, same error occurs
ch...@gmail.com <ch...@gmail.com> #32
me too
[Deleted User] <[Deleted User]> #33
Any updates on this issue?
yb...@google.com <yb...@google.com> #34
actually this is supported now, albeit still in experimental status.
You need to use data binding v2 and latest 3.2 canary.
You need to use data binding v2 and latest 3.2 canary.
yb...@google.com <yb...@google.com> #35
did anybody try w/ 3.2 ?
it should be working now but w/o more feedback it is hard to close this ticket :).
it should be working now but w/o more feedback it is hard to close this ticket :).
ne...@gmail.com <ne...@gmail.com> #36
It works for me since v2 compiler in AS 3.1.
Buthttps://issuetracker.google.com/issues/77539932 is still a big issue for multi-module projects
But
yb...@google.com <yb...@google.com> #37
Thanks. we are working on that one.
yb...@google.com <yb...@google.com>
ma...@gmail.com <ma...@gmail.com> #38
I am still unable to compile... Can any of you guys explain this error -
e: /com/package/databinding/MainActivityBindingImpl.java:3: error: cannot find symbol importcom.package.BR ;
e: /com/package/databinding/MainFragmentBindingImpl.java:3: error: cannot find symbol importcom.package.BR ;
error: DataBinding compiler args must include the feature info json when compiling a feature
Trying to run an instant app depending on this module, which is a non-base feature module.
v2 compiler with experimental flag on, gradle plugin 3.2.0-beta01, Android Studio 3.2 beta 1.
e: /com/package/databinding/MainActivityBindingImpl.java:3: error: cannot find symbol import
e: /com/package/databinding/MainFragmentBindingImpl.java:3: error: cannot find symbol import
error: DataBinding compiler args must include the feature info json when compiling a feature
Trying to run an instant app depending on this module, which is a non-base feature module.
v2 compiler with experimental flag on, gradle plugin 3.2.0-beta01, Android Studio 3.2 beta 1.
ri...@blablacar.com <ri...@blablacar.com> #39
We are having the same problem as #38. We also get the error: "cannot find symbol import com.package.BR ;"
Should we open a new issue?
Should we open a new issue?
ma...@gmail.com <ma...@gmail.com> #40
#39: I have opened here https://issuetracker.google.com/issues/110561165 with some maybe useless details, please comment there if your case is more generic.
az...@gmail.com <az...@gmail.com> #41
I am still getting this issue, Anyone have an idea why this issue appearing on latest
Android Studio 3.3.2?
Android Studio 3.3.2?
[Deleted User] <[Deleted User]> #42
Dependent features configured but no package ID was set.
having above issue while adding a module which does not use data binding
having above issue while adding a module which does not use data binding
Description
-Classes with the same name are compiled in different dex across the feature APKs
-It is not possible to reference databinding code from a dependent feature.