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 trialJason Machnikowski
2,739 PointsSignUpCallback 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
Treehouse TeacherHi 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.
Max Highsmith
146 PointsI 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') }
Max Highsmith
146 PointsI 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') }
Max Highsmith
146 PointsI 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') }
Jason Machnikowski
2,739 PointsJason Machnikowski
2,739 PointsI 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
Treehouse TeacherBen Jakuben
Treehouse TeacherWith 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.