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
Niranjan Deodhar
Courses Plus Student 1,941 PointsParse course - steps in getting started give error on "ParseStarterProject"
When I import the ParseStarterProject, it shows an error. It does not go away after entering the keys from the Parse website, and the project doesn't build. The log cat is huge, talks about failing to connect on TCP/IP etc. Needless to say I can't run, and therefore when I press "Test" there is no data posted on the cloud.
4 Answers
Ben Jakuben
Treehouse TeacherAre you using Eclipse or Android Studio? Can you paste in the contents of your logcat? Whatever you think is relevant, but it might be a lot! :)
Niranjan Deodhar
Courses Plus Student 1,941 PointsTried both; on Eclipse the error has changed even though I didn't do anything new. It used to be a very long log cat that I could not attach here, but now it says the following one line only:
[2014-09-16 10:02:27 - ParseStarterProject] Unable to resolve target 'android-9'
On Android Studio, it asked me for "Gradle Home", and I couldn't figure out what to do next!
Ben Jakuben
Treehouse TeacherOkay, let's try it with Eclipse. Can you paste in the contents of your AndroidManifest.xml file? It sounds like there is an incompatible API setting in there.
Niranjan Deodhar
Courses Plus Student 1,941 PointsHere you go:
<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.parse.starter" android:versionCode="1" android:versionName="1.0" >
<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="19"/>
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<application
android:name="ParseApplication"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" >
<activity
android:name=".ParseStarterProjectActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
Ben Jakuben
Treehouse TeacherSorry for my delayed reply here! I spent too much time on Swift stuff for a few days. :-/
First things first...I'd recommend targeting 14 and up, so change android:minSdkVersion="8" to android:minSdkVersion="14".
Your previous error Unable to resolve target 'android-9' was trying to find an older version of the Android SDK that you probably don't have installed.