0

While importing sample project in android studio, this error coming as Access is denied

Error while open project

even if i click on : Fix Gradle wrapper and re-import project enter image description here

You can find this project in this directory of your PC : ~\SDK\samples\android-23\admin\AppRestrictionEnforcer

5
  • this could be a permission restriction. Try using your Administrator account. Commented Jul 16, 2016 at 11:02
  • from where i can change administrator account in studio ? and if u talking about window's admin account then i'm already login in that. Commented Jul 18, 2016 at 4:17
  • If anyone wanna try their own. you can find this project in this path in ur PC : ~\SDK\samples\android-23\admin\AppRestrictionEnforcer Commented Jul 18, 2016 at 4:20
  • Start Android Studio as Administrator by right clicking it Commented Jul 18, 2016 at 4:30
  • @cricket_007 tnx for suggestion. I done it too but still error come same. I think the file gradle-wrapper.property is making some restriction. Commented Jul 18, 2016 at 5:18

1 Answer 1

0

I solve it. thnx for all of u. I edit the following files as :

build.gradle (application) as :

dependencies { classpath 'com.android.tools.build:gradle:2.1.2' } 

gradle-wrapper.properties as:

distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip 
Sign up to request clarification or add additional context in comments.

1 Comment

2.12 is latest version of Gradle, by the way

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.