hi to all! i have installed android studio, my sdk path is
C:\ androidsdk\sdk\sdk . my android studio installed successfully.
but after installation when android studio opens then in
event log tab an error message appears: Grade sync failed:
Cause: failed to find target with hash string ' android-19'
in C:\androidsdk\sdk\sdk Consult IDE log for more details.
please guide me i will be thank full to u

Dani AI

Generated

Short checklist and concrete fixes for the Gradle/SDK mismatch mentioned by . As noted, the IDE log will show which SDK path the project is using and which Android platform is not found — start there. The root cause is almost always either (a) the project points at the wrong SDK folder, or (b) the specific Android platform package required by the project isn’t installed.

Verify the SDK location and project setting: open Android Studio’s SDK location setting and confirm it points to the SDK root (the folder that contains platforms, platform-tools, and tools). Also check the project’s local.properties to ensure sdk.dir points at that same root. Example (Windows):

sdk.dir=C:\\Android\\sdk

If the project needs an older platform that’s not installed, install it with the SDK Manager (GUI: Configure → SDK Manager) or the command line. Example using the newer sdkmanager:

sdkmanager "platforms;android-19" "build-tools;19.1.0"

Also ensure Android SDK Tools and Platform‑tools are up to date.

After fixing the SDK path or installing the platform: update or align the project’s compileSdkVersion in the module build.gradle to an installed API (or install the API the project expects), then run a Gradle sync. If problems persist, run a clean and refresh:

.\gradlew.bat clean
.\gradlew.bat --refresh-dependencies

Use “File → Invalidate Caches / Restart” if caching seems to block changes.

Note: API 19 is old — if possible update the project to compile against a more recent SDK supported on your machine, but only after checking library compatibility. The IDE log will usually show exactly which path and API are failing; use that info to choose between correcting the sdk.dir, installing the missing platform, or changing compileSdkVersion.

What does the IDE log file tell you? Your post doesn't have enough information to help you.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.