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

Android Build a Self-Destructing Message Android App Adding Users Using Parse.com Creating a New User on Parse

SignUpCallback in AndroidStudio (build a self-destructing android app)

Ive been doing this project using Android Studio. So far everything has worked very well and the couple small issues like not being able to use the editor for the manifest and using XML instead have been no issue. I am now very stuck however, as soon as Ben sets up the SignUpCallback method and eclipse inserts the code I had to work around. I copied the code exactly as it appears in the video from Eclipse and get two errors. The first is that Android Studio wants me to import SignUpCallback, the second is that the @Override is not overriding the super class. Once I import the SignUpCallback I get a new error stating it must either be declared abstract or implement abstract method.

I followed the video to the end and even after adding the whole if/else statement I'm still receiving both errors. Please help I really want to use Android Studio and I really don't want to have to restart the project inside Eclipse.

4 Answers

Ben Jakuben
STAFF
Ben Jakuben
Treehouse Teacher

Hi Jason, sorry you're having trouble! It sounds like Android Studio doesn't recognize the Parse library yet. How did you add it? I show how to add Parse in Android Studio in this video: http://teamtreehouse.com/library/android-tools/getting-started-with-android-studio/adding-parse-as-a-thirdparty-library

I just realized I didn't link to the appropriate video in the Teacher's Notes. I just added that, too.

I feel like this is just an internal error inside Android Studio. I have a libs folder and the .jar from parse is in the libs folder. The libs directory is also in the correct location.

Everything works fine in Eclipse so I guess I'll just use that for now until Google updates Android Studio again.

Ben Jakuben
Ben Jakuben
Treehouse Teacher

With Android Studio it's a little different. You need to specify the external libraries in the build.gradle file. Have you done that? If so, paste it in here and we'll have a look. If not, check out that video I linked to earlier.

I have been getting the same error and can not figure it out for the life of me here is the gradle src

apply plugin: 'com.android.application'

android { compileSdkVersion 21 buildToolsVersion "21.1.2"

defaultConfig {
    applicationId "com.example.max.goatchat"
    minSdkVersion 15
    targetSdkVersion 21
    versionCode 1
    versionName "1.0"
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}

}

dependencies { compile fileTree(dir: 'libs', include: ['.jar']) compile 'com.android.support:appcompat-v7:21.0.3' compile 'com.parse.bolts:bolts-android:1.+' compile fileTree(dir: 'libs', include: 'Parse-.jar') compile fileTree('libs') }

I have been getting the same error and can not figure it out for the life of me here is the gradle src

apply plugin: 'com.android.application'

android { compileSdkVersion 21 buildToolsVersion "21.1.2"

defaultConfig {
    applicationId "com.example.max.goatchat"
    minSdkVersion 15
    targetSdkVersion 21
    versionCode 1
    versionName "1.0"
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}

}

dependencies { compile fileTree(dir: 'libs', include: ['.jar']) compile 'com.android.support:appcompat-v7:21.0.3' compile 'com.parse.bolts:bolts-android:1.+' compile fileTree(dir: 'libs', include: 'Parse-.jar') compile fileTree('libs') }

I have been getting the same error and can not figure it out for the life of me here is the gradle src

apply plugin: 'com.android.application'

android { compileSdkVersion 21 buildToolsVersion "21.1.2"

defaultConfig {
    applicationId "com.example.max.goatchat"
    minSdkVersion 15
    targetSdkVersion 21
    versionCode 1
    versionName "1.0"
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}

}

dependencies { compile fileTree(dir: 'libs', include: ['.jar']) compile 'com.android.support:appcompat-v7:21.0.3' compile 'com.parse.bolts:bolts-android:1.+' compile fileTree(dir: 'libs', include: 'Parse-.jar') compile fileTree('libs') }