Android Studio - Local Path Doesn't Exist

Android Studio APK install error: local path doesn't exist

Figured it out. My project was depending on both the aar and the project itself.

File -> Project Structure -> Modules -> Your Project -> Dependencies -> Uncheck the project (only depend on the aar)

Android Studio - local path doesn't exist

I originally saw this error after upgrading from 0.2.13 to 0.3. These instructions have been updated for the release of Android Studio 0.5.2. These are the steps I completed to resolve the issue.

1.In build.gradle make sure gradle is set to 0.9.0

buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.9.0'
}
}

2.In gradle-wrapper.properties make sure to use gradle 1.11

#Wed Apr 10 15:27:10 PDT 2013
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=http\://services.gradle.org/distributions/gradle-1.11-all.zip

3.Sync project with gradle files by pressing the button to the left of the avd button

Sample Image

4.Try to build project again. If still having issues possibly try File > Invalidate Caches/Restart

NOTE: If you are using 0.9.+ and it gives Could not GET 'http://repo1.maven.org/maven2/com/android/tools/build/gradle/'. Received status code 401 from server: Unauthorized (happens sporadically) then change to 0.9.0. Also, you have to use build tools 19.0 or greater I believe so make sure you have those downloaded in sdk manager and use as buildToolsVersion in whichever gradle file holds that info.

Android Studio 1.0.2 Error - Local path doesn't exist

I can see android studio searching for the path you mentioned:

local path: C:\Users\FV\Desktop\ \Project1\app\build\outputs\apk\app-debug.apk

I noticed there's a block in the path that states:

Desktop\ \Project1

Unless that's a typo, I think that's why Android Studio fails to find the path, Android Studio warns you against using paths with spaces or special characters in them while creating your project, because it might fail to find the path, and that might cause problems like the one you are experiencing.

Please try to move your project directory to a more conventional path (C:\Project1 is the safest bet, but others can be used aswell) and see if you are still having this issue

android gradle Local path doesn't exist

Instead of editing your manifest file during the build, you can override the version name in the android section of your manifest :

android {
...
defaultConfig {
versionName someScriptToComputeVersionName()
...

And there is at least 2 good reasons to do it that way :

  • the build process won't change your source code (i.e. AndroidManifest.xml will not be modified - at least the AndroidManifest.xml in your editable sources won't be modified)
  • there are good chances that Android Studio will be happy.

Now your problem is to define correctly the function someScriptToComputeVersionName() , that's up to you.

IMO, simply incrementing a number is probably not the best choice and you should probably go for a solution were you build the version name based on VCS revision number.

Local Path doesn't exist Android Studio 1.0

Try this. It helped me, FINALLY !!!

  1. close android studio
  2. Download http://goo.gl/v0UPm6
  3. goto \sdk
  4. rename 'tools' to 'tools1' (In case you need backup)
  5. extract this zip to \sdk
  6. it will make tools folder in \sdk
  7. restart studio and errors will be gone

Source: Google Plus

PD: Thank you, Aman ;) PD2: Android SDK Tools 24.0.1 is coming !!!



Related Topics



Leave a reply



Submit