Assigned
Status Update
Comments
uc...@google.com <uc...@google.com>
tn...@google.com <tn...@google.com> #2
This is not the same issue. 116170625 is a missing R class. This is just a warning that is shown in both cases.
[Deleted User] <[Deleted User]> #3
Note this seems to be related to Fabric. Removing `apply plugin: 'io.fabric'` (using v1.25.4) makes the warning go away.
tn...@google.com <tn...@google.com> #4
Will Fabric work without the plugin? We're using Crashalytics and perf-mon in our app.
or...@gmail.com <or...@gmail.com> #5
... no, and (if you don't remove all Fabric references) your app will crash
on open!
(nearly avoided sending that to prod)
On Wed, Jan 16, 2019 at 11:26 AM <buganizer-system@google.com> wrote:
on open!
(nearly avoided sending that to prod)
On Wed, Jan 16, 2019 at 11:26 AM <buganizer-system@google.com> wrote:
[Deleted User] <[Deleted User]> #6
Funny, it doesn't, apart from the fact I had to disable D8 because of alot of missing classes at runtime (maybe linked to this issue?)
Description
Build #AI-191.8026.42.35.6010548, built on November 15, 2019
JRE: 1.8.0_202-release-1483-b49-5587405 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Linux 5.3.0-24-generic
Steps to Reproduce:
1. Import the attached project into Android Studio 3.5.3
2. Look at the Scrap class
Expected Results: no errors
Actual Results: "Attribute value must be constant" error on the @Named annotation
Scrap.java is:
public class Scrap {
@Named(OldTownRoad.COWBOY_HATS)
public void lilNasRefs() {
System.out.println(OldTownRoad.COWBOY_HATS);
System.out.println(OldTownRoad.WRANGLER);
}
}
Here, OldTownRoad is a Kotlin class, where COWBOY_HATS is a const val in a companion object:
class OldTownRoad {
companion object {
const val COWBOY_HATS = "from Gucci"
const val WRANGLER = "on my booty"
}
}
I get the same results with:
object OldTownRoad {
const val COWBOY_HATS = "from Gucci"
const val WRANGLER = "on my booty"
}
In both cases, if you ignore the error, the project builds and runs fine, which is why I am assuming that this is an invalid code inspection.
Let me know if you need additional information -- thanks!