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

Solomon Alexandru
3,633 PointsAndroid Studio Problem Help!
I'm following the course "Build an Interactive Story App" and my Android Studio seems to create so much trouble when I'm trying to run the application :(
logcat: 03-21 11:37:29.142 4258-4258/? I/art: Late-enabling -Xcheck:jni 03-21 11:37:29.452 4258-4258/com.virtuoso.interactivestory W/System: ClassLoader referenced unknown path: /data/app/com.virtuoso.interactivestory-1/lib/x86 03-21 11:37:29.591 4258-4281/com.virtuoso.interactivestory D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true 03-21 11:37:29.781 4258-4281/com.virtuoso.interactivestory D/libEGL: loaded /system/lib/egl/libEGL_emulation.so 03-21 11:37:29.782 4258-4281/com.virtuoso.interactivestory D/libEGL: loaded /system/lib/egl/libGLESv1_CM_emulation.so 03-21 11:37:29.807 4258-4281/com.virtuoso.interactivestory D/libEGL: loaded /system/lib/egl/libGLESv2_emulation.so 03-21 11:37:30.024 4258-4281/com.virtuoso.interactivestory I/OpenGLRenderer: Initialized EGL, version 1.4 03-21 11:37:30.132 4258-4281/com.virtuoso.interactivestory W/EGL_emulation: eglSurfaceAttrib not implemented 03-21 11:37:30.132 4258-4281/com.virtuoso.interactivestory W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xeea93580, error=EGL_SUCCESS
Here are some screenshots with my emulator and the IDE. I'm using Genymotion emulator. http://prnt.sc/ai3cl2 http://prnt.sc/ai3dad
Please help me fix this!! I want to keep working on this course
3 Answers

aakarshrestha
6,509 PointsPlease paste your code.
Happy coding!

aakarshrestha
6,509 Pointsit looks ok to me... paste your MainActivity.java code. So when do you see the problem. Is it when you are trying to go to another Activity?
Happy coding!

Solomon Alexandru
3,633 PointsNope, it is when I try to run the application. The application opens in the emulator but as you can see in one of the images, it is plain white/blank instead of showing the content_main design.
<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
tools:context="com.virtuoso.interactivestory.MainActivity">
<android.support.design.widget.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@style/AppTheme.AppBarOverlay">
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="?attr/colorPrimary"
app:popupTheme="@style/AppTheme.PopupOverlay"/>
</android.support.design.widget.AppBarLayout>
<include layout="@layout/content_main"/>
</android.support.design.widget.CoordinatorLayout>
Solomon Alexandru
3,633 PointsSolomon Alexandru
3,633 PointsThe only thing I changed was content_main, you can see it here: