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!
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
kabir kCourses Plus Student 18,036 Points
My FunFacts app doesn't show up in the AVD of the emulator
At 00:37 of the
Running the FunFacts Project video, my FunFacts app doesn't show up in the AVD of the emulator, after pressing
Does anyone know how to fix this problem?
I saw the following texts in red in the
Android Monitor at the bottom of the Android Studio, after pressing
Run, could that have something to do with the FunFacts app not showing up in the AVD?
05-01 21:57:50.474 1888-1913/com.google.android.gms.persistent E/LevelDB: LevelDB leaked, don't forget to call close() 05-01 22:25:52.872 1137-1931/? E/Drm: Failed to find drm plugin
Dennis Brown28,742 Points
I had this exact issue with React-Native and the AVD, usually because Gradle was impatient, and would timeout on slow devices/system. In my experience it would not show the timeout error unless you ran the compiler with the debug flag, so it would look like all was fine. You can manually run debug with gradle to see the exact error.
./gradlew <project folder> --debug
I'm not sure where yours compiles the apk to, but with the device open on the home screen, you can always send the compiled apk to the device without having to recompile it every single time. Here is the folder Gradle uses with RN, but it may be a little different but close.
adb install android/<project folder>/build/outputs/apk/<apk file>
I'm sorry that I cannot provide a concrete answer, and I really helps someone in some way; I wanted to at least try to shed some light on the question.