I have the same problem as Bee Jay. I referenced the constraint-layout (manually) as well as the appcompat and compiled the project. The app will crash with the above exception.
I guess there is any problem with Gradle in general (maybe some charset issues). Fire says the following:
Can one of you send me your reproducing project with the reference? That said, i prolly won’t have time to look at this until next week, as i’m at WWDC this week.
Benjamin, are you using the latest beta build, or 2151 RTM? the %2D encodings look like a regression related to something infixed for the last beta, and might explain why the reference doesn’t resolve for you. (and of course if it doesn’t resolve, it wont be linked in and its “normal” that the app will then crash on the missing class.
if your project still crashes with the reference resolved ok, then we have a second bug.
Confirmed, the list is empty — does that match what you’re seeing? probably a regression from some abstractions we’ve been doing for Water. will check and fix for the next build
hmm, sure you added it correctly? Does it resolve after project reload/Fire restart? how it was added should make no difference.
I get “Gradle packages com.android.support.constraint:constraint-layout Version * not found in any repositories” for <GradleReference Include="com.android.support.constraint:constraint-layout:*" />. Which seems fair enough, given i cant actually find this package in any row the repositories, and gradle itself fails too resolve it, too. You sure thats the right name?
Hm I don’t know. But the gradle import still doesn’t work (with latest beta .2159). I get the error “reference could not resolved” when adding any reference.
Oh, and can you try using a real version number instead of *. I noticed the other day that MSBuild seems to drop any references that have *, before they even get to out tasks. I’ll be adding a fix for that this coming week as well.
I also noticed that the constraint layout jars are not put in a standard search location in the sdk folder. My guess is that Fire is not scanning the actual folder it is in. On my macOS system, it is laid out like so:
What I did was copy/paste from the /extras/m2repository/com/android/support/constraint into /extras/android/m2repository/com/android/support and then everything worked for (and as a bonus, it shows up in the Gradle Reference list in the Fire UI).
Curious. there’s two m2repositories folders? i’ll check the logic again. Note that current;y, only Fire uses our own logic for resolving these, in the IDE. the build still uses Gradle, so it should do the right thing either way (but you undo need tombs the exact version; xbuild skips references with *, it turns out…
Odd #2, i don have a /extras/m2reposutory. in only have /extras/android and /extras/google. did you install any additional packages in SDK Manager to get those? i also don’t have /extras/intel.