Local Path doesn't exist

主宰稳场 提交于 2019-12-25 16:44:55

问题


After updating Android Studio to 0.4.5, I cannot get my application to build. I have the following configurations:

dependencies {
    classpath 'com.android.tools.build:gradle:0.8.+'
    compile 'com.android.support:support-v4:19.0.1'

compileSdkVersion 19
buildToolsVersion "19.0.1"

defaultConfig {
    minSdkVersion 14
    targetSdkVersion 19
    renderscriptTargetApi 19
    renderscriptSupportMode true

NOTE: Cleaning + Rebuilding the project, deleting .iml/idea files and reimporting the project, setting APK_PATH, and/or syncing files with gradle does NOT fix this issue.


回答1:


Add this to your <projectName>.iml After updating Android Studio that error might occur but you can fix it updating the <projectName>.iml file adding this snippet:

<facet type="android" name="Android">
<configuration>
 <option name="APK_PATH" value="/build/apk/<projectName>-debug-unaligned.apk" />
</configuration>




回答2:


Running:

./gradlew clean packageDebug --debug

fixed the error.



来源:https://stackoverflow.com/questions/21842068/local-path-doesnt-exist

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!