javasdkideandroid-studioandroid-support-library

package android.support.v4.app does not exist ; in Android studio 0.8


I've recently updated the android studio IDE to 0.8 to work with the new android L SDK. To start I imported a finished android project that receives no errors in the older version of android studio. In version 0.8 i lines such as

import android.support.v4.app.Fragment;
get: Support cannot be resolved causing the rest of the code to have errors. The logcat returns 101 instances of

Error:(8, 30) error: package android.support.v4.app does not exist

1 for each time I call the support library in an import statement.

I've tried

not entirely sure what's left to do.


Solution

  • [for some reasons this answer is related to Eclipse, NOT Android Studio!]

    Have you tried setting the support libraries to your class path? This link from the Android Developer's website has some info on how to do that.

    Try following these steps from the website:

    Create a library project based on the support library code: