本地路径不存在 android studio 1.1.0
Local path doesn't exist android studio 1.1.0
我已经在这个项目上工作了一个多星期。一切似乎都很完美。但是这三天,我也不知道到底出了什么问题。
这是我的 gradle 控制台。
Executing tasks: [:app:assembleDebug]
Configuration on demand is an incubating feature.
:app:preBuild
:app:compileDebugNdk UP-TO-DATE
:app:preDebugBuild
:app:checkDebugManifest
:app:preReleaseBuild
:app:prepareComAndroidSupportAppcompatV72103Library UP-TO-DATE
:app:prepareComAndroidSupportSupportV42103Library UP-TO-DATE
:app:prepareDebugDependencies
:app:compileDebugAidl UP-TO-DATE
:app:compileDebugRenderscript UP-TO-DATE
:app:generateDebugBuildConfig UP-TO-DATE
:app:generateDebugAssets UP-TO-DATE
:app:mergeDebugAssets UP-TO-DATE
:app:generateDebugResValues UP-TO-DATE
:app:generateDebugResources UP-TO-DATE
:app:mergeDebugResources UP-TO-DATE
:app:processDebugManifest UP-TO-DATE
:app:processDebugResources UP-TO-DATE
:app:generateDebugSources UP-TO-DATE
:app:compileDebugJava UP-TO-DATE
:app:preDexDebug
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Error: Could not create the Java Virtual Machine.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Error: A fatal exception has occurred. Program will exit.
FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:preDexDebug'.
> com.android.ide.common.internal.LoggedErrorException: Failed to run command:
C:\Users\Ameni\android-sdks\sdk\build-tools.1.2\dx.bat --dex --output D:\Ameni\Android\MoveMore\app\build\intermediates\pre-dexed\debug\jfuzzylogic_2.0.9-4b966e0bdd93414a6ab36ffebfbec8ef2e15deb6.jar D:\Ameni\Android\MoveMore\app\src\main\res\raw\jfuzzylogic_2.0.9.jar
Error Code:
1
Output:
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 27.674 secs
然后这个在 运行...
Waiting for device.
Target device: genymotion-custom_phone___4_4_4___api_19___768x1280-192.168.110.101:5555
Uploading file
local path: D:\Ameni\Android\MoveMore\app\build\outputs\apk\app-debug.apk
remote path: /data/local/tmp/com.more.move.movemore
Local path doesn't exist.
然后我检查了 apk 文件...我没有找到它们...
请帮我找出问题...
我发现了问题:这是由于 java 的最新更新...显然 gradle 不能很好地与 java 的这个特定版本一起使用。所以我卸载 java 8,重新安装 java 7... 清理项目然后重建项目.. 使 caches/restart.. 无效,一切似乎都正常。
我遇到了这个确切的问题,真不敢相信这个问题还没有得到解答,这太令人沮丧了。 Android 工作室是一场噩梦!
编辑
这是一个 youtube 视频 link 解决方案,请注意,他在其中使用了一些色彩缤纷的语言。我实际上并没有把视频看到底,但看起来是同一个问题。我没有看视频,因为一些奇怪的原因,bug 自己修复了哈哈,有趣和游戏 ay!!
我已经在这个项目上工作了一个多星期。一切似乎都很完美。但是这三天,我也不知道到底出了什么问题。 这是我的 gradle 控制台。
Executing tasks: [:app:assembleDebug]
Configuration on demand is an incubating feature.
:app:preBuild
:app:compileDebugNdk UP-TO-DATE
:app:preDebugBuild
:app:checkDebugManifest
:app:preReleaseBuild
:app:prepareComAndroidSupportAppcompatV72103Library UP-TO-DATE
:app:prepareComAndroidSupportSupportV42103Library UP-TO-DATE
:app:prepareDebugDependencies
:app:compileDebugAidl UP-TO-DATE
:app:compileDebugRenderscript UP-TO-DATE
:app:generateDebugBuildConfig UP-TO-DATE
:app:generateDebugAssets UP-TO-DATE
:app:mergeDebugAssets UP-TO-DATE
:app:generateDebugResValues UP-TO-DATE
:app:generateDebugResources UP-TO-DATE
:app:mergeDebugResources UP-TO-DATE
:app:processDebugManifest UP-TO-DATE
:app:processDebugResources UP-TO-DATE
:app:generateDebugSources UP-TO-DATE
:app:compileDebugJava UP-TO-DATE
:app:preDexDebug
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Error: Could not create the Java Virtual Machine.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Error: A fatal exception has occurred. Program will exit.
FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:preDexDebug'.
> com.android.ide.common.internal.LoggedErrorException: Failed to run command:
C:\Users\Ameni\android-sdks\sdk\build-tools.1.2\dx.bat --dex --output D:\Ameni\Android\MoveMore\app\build\intermediates\pre-dexed\debug\jfuzzylogic_2.0.9-4b966e0bdd93414a6ab36ffebfbec8ef2e15deb6.jar D:\Ameni\Android\MoveMore\app\src\main\res\raw\jfuzzylogic_2.0.9.jar
Error Code:
1
Output:
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 27.674 secs
然后这个在 运行...
Waiting for device.
Target device: genymotion-custom_phone___4_4_4___api_19___768x1280-192.168.110.101:5555
Uploading file
local path: D:\Ameni\Android\MoveMore\app\build\outputs\apk\app-debug.apk
remote path: /data/local/tmp/com.more.move.movemore
Local path doesn't exist.
然后我检查了 apk 文件...我没有找到它们...
请帮我找出问题...
我发现了问题:这是由于 java 的最新更新...显然 gradle 不能很好地与 java 的这个特定版本一起使用。所以我卸载 java 8,重新安装 java 7... 清理项目然后重建项目.. 使 caches/restart.. 无效,一切似乎都正常。
我遇到了这个确切的问题,真不敢相信这个问题还没有得到解答,这太令人沮丧了。 Android 工作室是一场噩梦!
编辑
这是一个 youtube 视频 link 解决方案,请注意,他在其中使用了一些色彩缤纷的语言。我实际上并没有把视频看到底,但看起来是同一个问题。我没有看视频,因为一些奇怪的原因,bug 自己修复了哈哈,有趣和游戏 ay!!