Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Android Build a Weather App (2015) Concurrency and Error Handling Making Our Code Asynchronous

Martin Zhang
Martin Zhang
2,371 Points

Data not showing in Logcat along with errors and warnings

The app can start without problem, but I don't see any data pulled from the API in the log. There are also errors in the log, which I pasted below. Thank you!

05-12 15:36:05.295 32148-32148/com.example.mt5696.stormy E/dalvikvm: Could not find class 'android.transition.TransitionManager', referenced from method com.example.mt5696.stormy.MainActivity.access$super 05-12 15:36:05.310 32148-32148/com.example.mt5696.stormy E/dalvikvm: Could not find class 'android.app.SharedElementCallback', referenced from method com.example.mt5696.stormy.MainActivity.access$super 05-12 15:36:05.320 32148-32148/com.example.mt5696.stormy E/dalvikvm: Could not find class 'android.os.UserHandle', referenced from method com.example.mt5696.stormy.MainActivity.access$super 05-12 15:36:05.320 32148-32148/com.example.mt5696.stormy E/dalvikvm: Could not find class 'android.os.UserHandle', referenced from method com.example.mt5696.stormy.MainActivity.access$super 05-12 15:36:05.335 32148-32148/com.example.mt5696.stormy E/dalvikvm: Could not find class 'android.app.assist.AssistContent', referenced from method com.example.mt5696.stormy.MainActivity.access$super 05-12 15:36:05.340 32148-32148/com.example.mt5696.stormy E/dalvikvm: Could not find class 'android.view.SearchEvent', referenced from method com.example.mt5696.stormy.MainActivity.access$super 05-12 15:36:05.345 32148-32148/com.example.mt5696.stormy E/dalvikvm: Could not find class 'android.os.UserHandle', referenced from method com.example.mt5696.stormy.MainActivity.access$super 05-12 15:36:05.350 32148-32148/com.example.mt5696.stormy E/dalvikvm: Could not find class 'android.os.PersistableBundle', referenced from method com.example.mt5696.stormy.MainActivity.access$super 05-12 15:37:18.680 918-918/com.example.mt5696.stormy E/dalvikvm: Could not find class 'android.os.PersistableBundle', referenced from method com.example.mt5696.stormy.MainActivity.access$super 05-12 15:37:18.685 918-918/com.example.mt5696.stormy E/dalvikvm: Could not find class 'android.os.UserHandle', referenced from method com.example.mt5696.stormy.MainActivity.access$super 05-12 15:37:18.685 918-918/com.example.mt5696.stormy E/dalvikvm: Could not find class 'android.os.PersistableBundle', referenced from method com.example.mt5696.stormy.MainActivity.access$super 05-12 15:37:18.685 918-918/com.example.mt5696.stormy E/dalvikvm: Could not find class 'android.media.session.MediaController', referenced from method com.example.mt5696.stormy.MainActivity.access$super 05-12 15:37:18.685 918-918/com.example.mt5696.stormy E/dalvikvm: Could not find class 'android.widget.Toolbar', referenced from method com.example.mt5696.stormy.MainActivity.access$super 05-12 15:37:18.690 918-918/com.example.mt5696.stormy E/dalvikvm: Could not find class 'android.app.TaskStackBuilder', referenced from method com.example.mt5696.stormy.MainActivity.access$super 05-12 15:37:18.695 918-918/com.example.mt5696.stormy E/dalvikvm: Could not find class 'android.app.TaskStackBuilder', referenced from method com.example.mt5696.stormy.MainActivity.access$super 05-12 15:37:18.705 918-918/com.example.mt5696.stormy E/dalvikvm: Could not find class 'android.app.ActivityManager$TaskDescription', referenced from method com.example.mt5696.stormy.MainActivity.access$super 05-12 15:37:18.720 918-918/com.example.mt5696.stormy E/dalvikvm: Could not find class 'android.os.UserHandle', referenced from method com.example.mt5696.stormy.MainActivity.access$super 05-12 15:37:18.720 918-918/com.example.mt5696.stormy E/dalvikvm: Could not find class 'android.os.UserHandle', referenced from method com.example.mt5696.stormy.MainActivity.access$super 05-12 15:37:18.725 918-918/com.example.mt5696.stormy E/dalvikvm: Could not find class 'android.app.SharedElementCallback', referenced from method com.example.mt5696.stormy.MainActivity.access$super 05-12 15:37:18.725 918-918/com.example.mt5696.stormy E/dalvikvm: Could not find class 'android.os.PersistableBundle', referenced from method com.example.mt5696.stormy.MainActivity.access$super 05-12 15:37:18.735 918-918/com.example.mt5696.stormy E/dalvikvm: Could not find class 'android.transition.TransitionManager', referenced from method com.example.mt5696.stormy.MainActivity.access$super 05-12 15:37:18.755 918-918/com.example.mt5696.stormy E/dalvikvm: Could not find class 'android.app.SharedElementCallback', referenced from method com.example.mt5696.stormy.MainActivity.access$super 05-12 15:37:18.765 918-918/com.example.mt5696.stormy E/dalvikvm: Could not find class 'android.os.UserHandle', referenced from method com.example.mt5696.stormy.MainActivity.access$super 05-12 15:37:18.770 918-918/com.example.mt5696.stormy E/dalvikvm: Could not find class 'android.os.UserHandle', referenced from method com.example.mt5696.stormy.MainActivity.access$super 05-12 15:37:18.780 918-918/com.example.mt5696.stormy E/dalvikvm: Could not find class 'android.app.assist.AssistContent', referenced from method com.example.mt5696.stormy.MainActivity.access$super 05-12 15:37:18.795 918-918/com.example.mt5696.stormy E/dalvikvm: Could not find class 'android.view.SearchEvent', referenced from method com.example.mt5696.stormy.MainActivity.access$super 05-12 15:37:18.800 918-918/com.example.mt5696.stormy E/dalvikvm: Could not find class 'android.os.UserHandle', referenced from method com.example.mt5696.stormy.MainActivity.access$super 05-12 15:37:18.815 918-918/com.example.mt5696.stormy E/dalvikvm: Could not find class 'android.os.PersistableBundle', referenced from method com.example.mt5696.stormy.MainActivity.access$super 05-12 15:56:24.525 20488-20488/com.example.mt5696.stormy E/dalvikvm: Could not find class 'android.os.PersistableBundle', referenced from method com.example.mt5696.stormy.MainActivity.access$super 05-12 15:56:24.525 20488-20488/com.example.mt5696.stormy E/dalvikvm: Could not find class 'android.os.UserHandle', referenced from method com.example.mt5696.stormy.MainActivity.access$super 05-12 15:56:24.525 20488-20488/com.example.mt5696.stormy E/dalvikvm: Could not find class 'android.os.PersistableBundle', referenced from method com.example.mt5696.stormy.MainActivity.access$super 05-12 15:56:24.525 20488-20488/com.example.mt5696.stormy E/dalvikvm: Could not find class 'android.media.session.MediaController', referenced from method com.example.mt5696.stormy.MainActivity.access$super 05-12 15:56:24.525 20488-20488/com.example.mt5696.stormy E/dalvikvm: Could not find class 'android.widget.Toolbar', referenced from method com.example.mt5696.stormy.MainActivity.access$super 05-12 15:56:24.525 20488-20488/com.example.mt5696.stormy E/dalvikvm: Could not find class 'android.app.TaskStackBuilder', referenced from method com.example.mt5696.stormy.MainActivity.access$super 05-12 15:56:24.530 20488-20488/com.example.mt5696.stormy E/dalvikvm: Could not find class 'android.app.TaskStackBuilder', referenced from method com.example.mt5696.stormy.MainActivity.access$super 05-12 15:56:24.535 20488-20488/com.example.mt5696.stormy E/dalvikvm: Could not find class 'android.app.ActivityManager$TaskDescription', referenced from method com.example.mt5696.stormy.MainActivity.access$super 05-12 15:56:24.540 20488-20488/com.example.mt5696.stormy E/dalvikvm: Could not find class 'android.os.UserHandle', referenced from method com.example.mt5696.stormy.MainActivity.access$super 05-12 15:56:24.540 20488-20488/com.example.mt5696.stormy E/dalvikvm: Could not find class 'android.os.UserHandle', referenced from method com.example.mt5696.stormy.MainActivity.access$super 05-12 15:56:24.540 20488-20488/com.example.mt5696.stormy E/dalvikvm: Could not find class 'android.app.SharedElementCallback', referenced from method com.example.mt5696.stormy.MainActivity.access$super 05-12 15:56:24.540 20488-20488/com.example.mt5696.stormy E/dalvikvm: Could not find class 'android.os.PersistableBundle', referenced from method com.example.mt5696.stormy.MainActivity.access$super 05-12 15:56:24.545 20488-20488/com.example.mt5696.stormy E/dalvikvm: Could not find class 'android.transition.TransitionManager', referenced from method com.example.mt5696.stormy.MainActivity.access$super 05-12 15:56:24.550 20488-20488/com.example.mt5696.stormy E/dalvikvm: Could not find class 'android.app.SharedElementCallback', referenced from method com.example.mt5696.stormy.MainActivity.access$super 05-12 15:56:24.555 20488-20488/com.example.mt5696.stormy E/dalvikvm: Could not find class 'android.os.UserHandle', referenced from method com.example.mt5696.stormy.MainActivity.access$super 05-12 15:56:24.555 20488-20488/com.example.mt5696.stormy E/dalvikvm: Could not find class 'android.os.UserHandle', referenced from method com.example.mt5696.stormy.MainActivity.access$super 05-12 15:56:24.560 20488-20488/com.example.mt5696.stormy E/dalvikvm: Could not find class 'android.app.assist.AssistContent', referenced from method com.example.mt5696.stormy.MainActivity.access$super 05-12 15:56:24.565 20488-20488/com.example.mt5696.stormy E/dalvikvm: Could not find class 'android.view.SearchEvent', referenced from method com.example.mt5696.stormy.MainActivity.access$super 05-12 15:56:24.565 20488-20488/com.example.mt5696.stormy E/dalvikvm: Could not find class 'android.os.UserHandle', referenced from method com.example.mt5696.stormy.MainActivity.access$super 05-12 15:56:24.570 20488-20488/com.example.mt5696.stormy E/dalvikvm: Could not find class 'android.os.PersistableBundle', referenced from method com.example.mt5696.stormy.MainActivity.access$super 05-12 15:59:25.360 23653-23653/com.example.mt5696.stormy E/dalvikvm: Could not find class 'android.os.PersistableBundle', referenced from method com.example.mt5696.stormy.MainActivity.access$super 05-12 15:59:25.360 23653-23653/com.example.mt5696.stormy E/dalvikvm: Could not find class 'android.os.UserHandle', referenced from method com.example.mt5696.stormy.MainActivity.access$super 05-12 15:59:25.365 23653-23653/com.example.mt5696.stormy E/dalvikvm: Could not find class 'android.os.PersistableBundle', referenced from method com.example.mt5696.stormy.MainActivity.access$super 05-12 15:59:25.365 23653-23653/com.example.mt5696.stormy E/dalvikvm: Could not find class 'android.media.session.MediaController', referenced from method com.example.mt5696.stormy.MainActivity.access$super 05-12 15:59:25.365 23653-23653/com.example.mt5696.stormy E/dalvikvm: Could not find class 'android.widget.Toolbar', referenced from method com.example.mt5696.stormy.MainActivity.access$super 05-12 15:59:25.365 23653-23653/com.example.mt5696.stormy E/dalvikvm: Could not find class 'android.app.TaskStackBuilder', referenced from method com.example.mt5696.stormy.MainActivity.access$super 05-12 15:59:25.370 23653-23653/com.example.mt5696.stormy E/dalvikvm: Could not find class 'android.app.TaskStackBuilder', referenced from method com.example.mt5696.stormy.MainActivity.access$super 05-12 15:59:25.370 23653-23653/com.example.mt5696.stormy E/dalvikvm: Could not find class 'android.app.ActivityManager$TaskDescription', referenced from method com.example.mt5696.stormy.MainActivity.access$super 05-12 15:59:25.375 23653-23653/com.example.mt5696.stormy E/dalvikvm: Could not find class 'android.os.UserHandle', referenced from method com.example.mt5696.stormy.MainActivity.access$super 05-12 15:59:25.375 23653-23653/com.example.mt5696.stormy E/dalvikvm: Could not find class 'android.os.UserHandle', referenced from method com.example.mt5696.stormy.MainActivity.access$super 05-12 15:59:25.375 23653-23653/com.example.mt5696.stormy E/dalvikvm: Could not find class 'android.app.SharedElementCallback', referenced from method com.example.mt5696.stormy.MainActivity.access$super 05-12 15:59:25.375 23653-23653/com.example.mt5696.stormy E/dalvikvm: Could not find class 'android.os.PersistableBundle', referenced from method com.example.mt5696.stormy.MainActivity.access$super 05-12 15:59:25.380 23653-23653/com.example.mt5696.stormy E/dalvikvm: Could not find class 'android.transition.TransitionManager', referenced from method com.example.mt5696.stormy.MainActivity.access$super 05-12 15:59:25.390 23653-23653/com.example.mt5696.stormy E/dalvikvm: Could not find class 'android.app.SharedElementCallback', referenced from method com.example.mt5696.stormy.MainActivity.access$super 05-12 15:59:25.390 23653-23653/com.example.mt5696.stormy E/dalvikvm: Could not find class 'android.os.UserHandle', referenced from method com.example.mt5696.stormy.MainActivity.access$super 05-12 15:59:25.395 23653-23653/com.example.mt5696.stormy E/dalvikvm: Could not find class 'android.os.UserHandle', referenced from method com.example.mt5696.stormy.MainActivity.access$super 05-12 15:59:25.415 23653-23653/com.example.mt5696.stormy E/dalvikvm: Could not find class 'android.app.assist.AssistContent', referenced from method com.example.mt5696.stormy.MainActivity.access$super 05-12 15:59:25.415 23653-23653/com.example.mt5696.stormy E/dalvikvm: Could not find class 'android.view.SearchEvent', referenced from method com.example.mt5696.stormy.MainActivity.access$super 05-12 15:59:25.420 23653-23653/com.example.mt5696.stormy E/dalvikvm: Could not find class 'android.os.UserHandle', referenced from method com.example.mt5696.stormy.MainActivity.access$super 05-12 15:59:25.420 23653-23653/com.example.mt5696.stormy E/dalvikvm: Could not find class 'android.os.PersistableBundle', referenced from method com.example.mt5696.stormy.MainActivity.access$super

Martin Zhang
Martin Zhang
2,371 Points

This is my gradle module file

apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.3"

    defaultConfig {
        applicationId "com.example.mt5696.stormy"
        minSdkVersion 14
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:23.4.0'
    compile 'com.squareup.okhttp3:okhttp:3.2.0'
}