Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Helena Clarke
222 PointsFun Facts Intro App screen in Android beta wont open... just keeps loading?
Hi there. I got to the last step of the Fun Facts challenge for the screen page after downloading the Android App. I did have some initial issues opening the zip folder as it said the ''path is too long''. But I managed to forge ahead with the rest of the tutorial, but now I am at the last step and the loading bar has been rolling for 20 minutes and it just says ''Building Fun Facts Gradle Project Info''. Can anyone help? Thanks.
13 Answers
Steve Hunter
57,712 PointsHi Helena,
Are you still having trouble with this?
If so, what is it you downloaded? The project files associated with the course?
What code is Gradle trying to build?
Sorry to be vague but it is difficult to be very specific ith an isuse like this. I just need to get a clearer idea of what you have got going on!
Steve.
Helena Clarke
222 PointsI actually got that bit to work. thanks.
Steve Hunter
57,712 PointsAwesome - glad you're good to go!
Steve.
Helena Clarke
222 PointsPerhaps you can help with my AVD launch issue though. It just keeps saying 'Gradle build in 5 secs'. But it's said that forever now and wont launch from the tool bar at all but gives an error msg. Thanks.
Steve Hunter
57,712 PointsWhat's the error message?
Helena Clarke
222 PointsI cant remember and I cant even get it to give me that error anymore. My system might just be running really slow? But it's said Gradle in 9 seconds for about 3 minutes now?
Steve Hunter
57,712 PointsCan you click the Gradle Console - that's probably hiding at the bottom right of the Android Studio window, along the bottom gutter. That should give you some message that may help.
Helena Clarke
222 PointsI just checked the gradle console and it has loads of debug messages.
Helena Clarke
222 PointsConfiguration on demand is an incubating feature. :app:preBuild :app:compileDebugNdk UP-TO-DATE :app:preDebugBuild :app:checkDebugManifest :app:prepareDebugDependencies :app:compileDebugAidl UP-TO-DATE :app:compileDebugRenderscript UP-TO-DATE :app:generateDebugBuildConfig UP-TO-DATE :app:generateDebugAssets UP-TO-DATE :app:mergeDebugAssets UP-TO-DATE :app:generateDebugResValues UP-TO-DATE :app:generateDebugResources UP-TO-DATE :app:mergeDebugResources UP-TO-DATE :app:processDebugManifest UP-TO-DATE :app:processDebugResources UP-TO-DATE :app:generateDebugSources UP-TO-DATE :app:compileDebugJava UP-TO-DATE :app:preDexDebug UP-TO-DATE :app:dexDebug UP-TO-DATE :app:processDebugJavaRes UP-TO-DATE :app:validateDebugSigning :app:packageDebug UP-TO-DATE :app:zipalignDebug UP-TO-DATE :app:assembleDebug UP-TO-DATE
BUILD SUCCESSFUL
Total time: 5.238 secs
....I get this and then the AVD just doesnt launch.
Steve Hunter
57,712 PointsOK - so Gradle has finished and there's no problems. I suspected that the Gradle in 9 seconds meant it had finished in 9 seconds, not that it was going to finish in 9 seconds.
Are you using the stock emulator? Have you made sure it isn't hiding underneath the other windows on the screen? It will sometimes appear underneath and sit there merrily running your application invisible to the user!
Helena Clarke
222 PointsNow it says gradle executing task [app: assemble: debug]
Helena Clarke
222 PointsIn the top right hand corner of the phone screen where we are meant to see our work it has a work in progress wheel turning so it's still doing something I assume. Im using the same AVD menu the video shows, where you launch an emulator as I dont have a phone to plug into the USB.
Helena Clarke
222 PointsI just tried launching The AVD manager from the toolbar again and it says ' can not launch AVD Manager. Output : File Not found-x86
Steve Hunter
57,712 PointsThat's the problem, then! Now, how to fix it?! Have you got the latest version of Android Studio? Check that first.
Then, open up Preferences - I don't know where that is on a Widows machine but probably under File. In there, open up 'Appearance and Behaviour' | 'System Settings' | 'Android SDK'. In the 'SDK Tools' tab, check you've got the build tools all selected. There's also something for the 'Intel x86 Emulator Accelerator'. Make sure that's ticked too.
Give that a try and see if it helps.
Steve.
Helena Clarke
222 PointsIve looked anywhere that a screen could be hiding. Am I missing somewhere possibly?
Helena Clarke
222 PointsI downloaded the version that was under the video, so I would assume its the latest version. And Im not finding anything that says appearances and behavior.
Steve Hunter
57,712 PointsI think it is well worth checling for updates of the IDE. On my Mac, the current version is v1.4.1, 5. It'll be different for Windows machines, I'd guess. Try finding the check for updates option.
Did you find the preferences menu? I haven't got AS installed on a Windows machine - let me see if I can do that quickly.
Helena Clarke
222 PointsI cant find the preferences menu. I am trying to uninstall and reinstall it now from the website. I'll try that first.
Steve Hunter
57,712 PointsGood plan. Let me know how you get on.
Steve.