请选择 进入手机版 | 继续访问电脑版
设为首页收藏本站

Android Studio 中文社区论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

搜索
热搜: Android Sdk Gradle
查看: 2153|回复: 2

[WINDOWS] 导入一个工程提示拒绝访问(FileNotFoundException)

[复制链接]

1

主题

2

帖子

9

积分

新手上路

Rank: 1

积分
9
发表于 2015-3-11 17:52:59 | 显示全部楼层 |阅读模式
F:\AndroidStudioProjects\MyApplication\CircularProgressView-master (拒绝访问。): F:\AndroidStudioProjects\MyApplication\CircularProgressView-master (拒绝访问。)
java.io.FileNotFoundException: F:\AndroidStudioProjects\MyApplication\CircularProgressView-master (拒绝访问。)
        at java.io.FileOutputStream.open(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:212)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:165)
        at com.intellij.openapi.util.io.FileUtil.openOutputStream(FileUtil.java:508)
        at com.intellij.openapi.util.io.FileUtil.performCopy(FileUtil.java:460)
        at com.intellij.openapi.util.io.FileUtil.copy(FileUtil.java:450)
        at com.intellij.openapi.vfs.impl.local.LocalFileSystemBase.copyFile(LocalFileSystemBase.java:554)
        at com.intellij.openapi.vfs.newvfs.persistent.PersistentFSImpl.copyFile(PersistentFSImpl.java:418)
        at com.intellij.openapi.vfs.newvfs.impl.VirtualFileSystemEntry$1.compute(VirtualFileSystemEntry.java:285)
        at com.intellij.openapi.vfs.newvfs.impl.VirtualFileSystemEntry$1.compute(VirtualFileSystemEntry.java:282)
        at com.intellij.openapi.vfs.encoding.EncodingRegistry.doActionAndRestoreEncoding(EncodingRegistry.java:75)
        at com.intellij.openapi.vfs.newvfs.impl.VirtualFileSystemEntry.copy(VirtualFileSystemEntry.java:282)
        at com.android.tools.idea.gradle.project.GradleModuleImporter.copyAndRegisterModule(GradleModuleImporter.java:289)
        at com.android.tools.idea.gradle.project.GradleModuleImporter.access$000(GradleModuleImporter.java:49)
        at com.android.tools.idea.gradle.project.GradleModuleImporter$1.run(GradleModuleImporter.java:220)
        at com.intellij.openapi.command.WriteCommandAction$Simple.run(WriteCommandAction.java:168)
        at com.intellij.openapi.application.RunResult.run(RunResult.java:38)
        at com.intellij.openapi.command.WriteCommandAction$2$1.run(WriteCommandAction.java:118)
        at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:984)
        at com.intellij.openapi.command.WriteCommandAction$2.run(WriteCommandAction.java:115)
        at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:124)
        at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:99)
        at com.intellij.openapi.command.WriteCommandAction.performWriteCommandAction(WriteCommandAction.java:112)
        at com.intellij.openapi.command.WriteCommandAction.access$000(WriteCommandAction.java:33)
        at com.intellij.openapi.command.WriteCommandAction$1.run(WriteCommandAction.java:80)
        at com.intellij.openapi.command.WriteCommandAction.execute(WriteCommandAction.java:85)
        at com.android.tools.idea.gradle.project.GradleModuleImporter.importModules(GradleModuleImporter.java:217)
        at com.android.tools.idea.gradle.project.GradleModuleImporter.importProjects(GradleModuleImporter.java:86)
        at com.android.tools.idea.wizard.ImportSourceModulePath.createModule(ImportSourceModulePath.java:104)
        at com.android.tools.idea.wizard.ImportWizardModuleBuilder.createModule(ImportWizardModuleBuilder.java:277)
        at com.android.tools.idea.wizard.NewModuleWizard$3.run(NewModuleWizard.java:126)
        at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:984)
        at com.android.tools.idea.wizard.NewModuleWizard.createModule(NewModuleWizard.java:123)
        at com.android.tools.idea.actions.AndroidImportModuleAction.importGradleSubprojectAsModule(AndroidImportModuleAction.java:59)
        at com.android.tools.idea.actions.AndroidImportModuleAction.actionPerformed(AndroidImportModuleAction.java:82)
        at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:164)
        at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter$1.run(ActionMenuItem.java:266)
        at com.intellij.openapi.wm.impl.FocusManagerImpl.runOnOwnContext(FocusManagerImpl.java:926)
        at com.intellij.openapi.wm.impl.IdeFocusManagerImpl.runOnOwnContext(IdeFocusManagerImpl.java:124)
        at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.actionPerformed(ActionMenuItem.java:236)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
        at com.intellij.openapi.actionSystem.impl.ActionMenuItem.fireActionPerformed(ActionMenuItem.java:105)
        at com.intellij.ui.plaf.beg.BegMenuItemUI.doClick(BegMenuItemUI.java:512)
        at com.intellij.ui.plaf.beg.BegMenuItemUI.access$300(BegMenuItemUI.java:44)
        at com.intellij.ui.plaf.beg.BegMenuItemUI$MyMouseInputHandler.mouseReleased(BegMenuItemUI.java:532)
        at java.awt.Component.processMouseEvent(Component.java:6505)
        at javax.swing.JComponent.processMouseEvent(JComponent.java:3321)
        at java.awt.Component.processEvent(Component.java:6270)
        at java.awt.Container.processEvent(Container.java:2229)
        at java.awt.Component.dispatchEventImpl(Component.java:4861)
        at java.awt.Container.dispatchEventImpl(Container.java:2287)
        at java.awt.Component.dispatchEvent(Component.java:4687)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
        at java.awt.Container.dispatchEventImpl(Container.java:2273)
        at java.awt.Window.dispatchEventImpl(Window.java:2719)
        at java.awt.Component.dispatchEvent(Component.java:4687)
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:723)
        at java.awt.EventQueue.access$200(EventQueue.java:103)
        at java.awt.EventQueue$3.run(EventQueue.java:682)
        at java.awt.EventQueue$3.run(EventQueue.java:680)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
        at java.awt.EventQueue$4.run(EventQueue.java:696)
        at java.awt.EventQueue$4.run(EventQueue.java:694)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:693)
        at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:697)
        at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:520)
        at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:335)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)


回复

使用道具 举报

1

主题

2

帖子

9

积分

新手上路

Rank: 1

积分
9
 楼主| 发表于 2015-4-16 19:35:20 | 显示全部楼层
同一个问题
回复 支持 反对

使用道具 举报

0

主题

1

帖子

8

积分

新手上路

Rank: 1

积分
8
发表于 2017-1-11 16:27:52 | 显示全部楼层
我的和你差不多,哥们解决了没?
Gradle 'SuperMvp-master' project refresh failed
Error:拒绝访问。

我的就这样!
重装也没用!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

AndroidStudio中文社区 ( 京ICP备06021553号 )  

资源: 安卓 | Android | 社区 | 问答 | 培训 | 人才 | 招聘 | YotaPhone | VisualStudio

© 2013-2014 Android Studio

快速回复 返回顶部 返回列表