androidandroid-studioandroid-studio-import

Error in open AppRestrictionEnforcer project in android studio


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


Solution

  • 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