0

anyone tried the new Canary build of Android studio with Navigation Editor? It does not want to run with GitHub viewer sample from Google. I mean it compiles without errors but I can not visually see what there should be with fragment navigation, only "Waiting for the build to finish" although I tried to build the project like 20 times

Here is the screenshot: enter image description here

As you can see, it is from Android architecture samples, the GitHub browser one. Here is a link to it:

GitHub Browser Sample You just open it and let it compile

It is not an error with gradle compilation as you can see bellow the red lines, the problem is the navigation editor introduced in Canary 14

Lukas Anda
  • 716
  • 1
  • 9
  • 30
  • 1
    yep, same problem here – Levi Moreira May 11 '18 at 15:22
  • 1
    Possible duplicate of [3rd-party Gradle plug-ins may be the cause](https://stackoverflow.com/questions/49518223/3rd-party-gradle-plug-ins-may-be-the-cause) – Zoe May 11 '18 at 15:28
  • 1
    This is a problem from me too. Can view other xml files from layout just fine. Everything from navigation has the same thing your screen shot shows. – zafrani May 14 '18 at 17:34
  • 1
    Found this ticket https://issuetracker.google.com/issues/79652974 tracking it. – zafrani May 16 '18 at 15:57
  • For a temporary workaround see this: https://stackoverflow.com/questions/50201356/navigation-drawer-issue-not-showing-layout-preview/50221647#50221647 –  Jul 30 '18 at 10:32

2 Answers2

0

Had the same issue - you need to update your Canary build - Currently 3.2 canary 18 as of time of writing. Also, if Mac user, running HighSierra - ensure that your preview version of Android Studio is stored with the /Applications folder - otherwise you will not have write access to update AS. Issue solved

RMcGuigan
  • 1,147
  • 2
  • 7
  • 11
0

If you have the test dependency androidTestImplementation "android.arch.navigation:navigation-testing:$nav_version" try removing it. Then do Invalidate caches and restart.

Robert
  • 5,278
  • 43
  • 65
  • 115
vader
  • 1
  • 1