Could not load wrapper properties from как исправить

please help me, when i create a new project in android studio there is an error
Could not load wrapper properties from Could not load wrapper properties from ‘C:UsersbarenAndroidStudioProjectsToyaGaragegradlewrappergradle-wrapper.properties’.
1

enter image description here

asked Dec 4, 2021 at 4:59

Febriyandi's user avatar

FebriyandiFebriyandi

231 silver badge4 bronze badges

6

In my case, I have a blank space at the end of “distributionUrl” row
distribution url

answered Sep 21, 2022 at 10:17

Amit Dave's user avatar

Amit DaveAmit Dave

5565 silver badges12 bronze badges

2

Delete the wrapper properties file in your app that is having the problem and copy the wrapper property file from your working apps to the same place where you deleted that file.

this is like the basic path to get to that file

C:UsersTT VirtualAndroidStudioProjectsKotlinFirebaseAuthgradlewrapper

remember this here is my path to that file

Peter Csala's user avatar

Peter Csala

16k15 gold badges33 silver badges73 bronze badges

answered Jan 4, 2022 at 22:45

Vitalis Haupindi's user avatar

1

Question background:

1. Build generation errors when new Project, SYNC Display: Could Not Load Wrapper Properties from xxx, xxx is the address of the new project Wrapper folder;

2. When the original Project is newly built Moudle, it is possible to create a project, but there is no new mainActivity and Layout. After compiling, “Don’t have content in preface”, I checked all XML, the front is the head;

analyze:

1. This is the latest version of Android Studio in the past two years. I remember why there will be this situation. It should be a new Module in the Android view that causes the configuration file to change, equivalent to module module.

2, I watched the content of the card owner when I was new project, changed my project javabean’s content, unclear how the AS remembered, the correct content should be:

distributionBase=GRADLE_USER_HOME
distributionUrl=https://services.gradle.org/distributions/gradle-7.0.2-bin.zip
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME

Temporary measures:

After finding the cause of the problem, you will be an article on the new project card owner’s gradle.properties.

1, the first method: You can see an error in Setting-build-gradle, select the path to the .gradle file in the input box: c: users xxx .gradle wrapper DISTS Gradle- 7.0.2-bin 857tjiHV64XAMWRF0H14CAI3R Gradle-7.0.2, click OK to generate a project award;

2, second approach: Find D: Tools Android-Workspace day1110 gradle wrapper Day1110 Gradle Wrapper Day1110 Gradle Wrapper DaY1110 Gradle Wrapper Day1110 Gradle Wrapper Day1110 Gradle Wraperties file, the correct content should be:

distributionBase=GRADLE_USER_HOME
distributionUrl=https://services.gradle.org/distributions/gradle-7.0.2-bin.zip
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME

Copy the correct content to this file, return to the AS compiler, manually require recompilation;

Long measures:

Need to completely uninstall the AS environment and then reinstall;

This part of the focus is confusing, and the AS is equipped with three parts of SDK / .Gradle / AS. After multiple attempts, it is not saved in these third-party configuration files, but stored in the local cache.

Many articles in the forum have told complete unloading methods to focus. In Android Studio2020.3.5,

After you need to delete the following two files, this two folders are deleted. Android will automatically disappear.

 

At this point, I will reinstall the AS, run, and perfectly solve it.

Issue

please help me, when i create a new project in android studio there is an error
Could not load wrapper properties from Could not load wrapper properties from ‘C:UsersbarenAndroidStudioProjectsToyaGaragegradlewrappergradle-wrapper.properties’.
1

enter image description here

Solution

I Searched for your problem and i found this,maybe this solution can help you https://stackoverflow.com/a/64439711/15805169

Answered By – Barney Stinson

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

i am new to flutter, i just followed an online video on setting up flutter on my MacBook pro and i just created my first project and tried to run it while my system is connected to the internet but got this error bellow

Launching lib/main.dart on sdk gphone x86 arm in debug mode...
Running Gradle task 'assembleDebug'...
Exception in thread "main" java.lang.RuntimeException: Could not load wrapper properties from '/Users/bright/AndroidStudioProjects/second_flutterapp/android/gradle/wrapper/gradle-wrapper.properties'.
    at org.gradle.wrapper.WrapperExecutor.<init>(WrapperExecutor.java:64)
    at org.gradle.wrapper.WrapperExecutor.forWrapperPropertiesFile(WrapperExecutor.java:47)
    at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:60)
Caused by: java.net.URISyntaxException: Illegal character in path at index 62: https://services.gradle.org/distributions/gradle-x.x.x-all.zip to gradle-6.7-all.zip
    at java.net.URI$Parser.fail(URI.java:2848)
    at java.net.URI$Parser.checkChars(URI.java:3021)
    at java.net.URI$Parser.parseHierarchical(URI.java:3105)
    at java.net.URI$Parser.parse(URI.java:3053)
    at java.net.URI.<init>(URI.java:588)
    at org.gradle.wrapper.WrapperExecutor.readDistroUrl(WrapperExecutor.java:81)
    at org.gradle.wrapper.WrapperExecutor.prepareDistributionUri(WrapperExecutor.java:70)
    at org.gradle.wrapper.WrapperExecutor.<init>(WrapperExecutor.java:57)
    ... 2 more
Exception: Gradle task assembleDebug failed with exit code 1

i have see many issues like this with answers here but non fixed my issue… i have tried deleting “gradle-wrapper.jar” and Replacing “distributionUrl=https://services.gradle.org/distributions/gradle-x.x.x-all.zip to gradle-6.4.1-all.zip” on the gradle-wrapper-properties file and running the comman “flutter run” on my terminal but still get same error

i have tried “flutter doctor” which gave me the result down bellow

Brights-MBP:~ bright$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 1.22.5, on Mac OS X 10.15.6 19G2021 darwin-x64,
    locale en-NG)
 
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✗] Xcode - develop for iOS and macOS
    ✗ Xcode installation is incomplete; a full installation is necessary for iOS
      development.
      Download at: https://developer.apple.com/xcode/download/
      Or install Xcode via the App Store.
      Once installed, run:
        sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
        sudo xcodebuild -runFirstLaunch
    ✗ CocoaPods not installed.
        CocoaPods is used to retrieve the iOS and macOS platform side's plugin
        code that responds to your plugin usage on the Dart side.
        Without CocoaPods, plugins will not work on iOS or macOS.
        For more info, see https://flutter.dev/platform-plugins
      To install:
        sudo gem install cocoapods
[✓] Android Studio (version 4.1)
[✓] Connected device (1 available)

! Doctor found issues in 1 category.

i know i have not installed Xcode which i will do later but am not sure if thats the issue
#what am i doing wrong?

#android #android-studio #flutter #flutter-test

#Android #android-studio #флаттер #тест на флаттер

Вопрос:

я новичок в flutter, я просто посмотрел онлайн-видео о настройке flutter на моем MacBook pro, и я только что создал свой первый проект и попытался запустить его, пока моя система подключена к Интернету, но получил эту ошибку ниже

 Launching lib/main.dart on sdk gphone x86 arm in debug mode...
Running Gradle task 'assembleDebug'...
Exception in thread "main" java.lang.RuntimeException: Could not load wrapper properties from '/Users/bright/AndroidStudioProjects/second_flutterapp/android/gradle/wrapper/gradle-wrapper.properties'.
    at org.gradle.wrapper.WrapperExecutor.<init>(WrapperExecutor.java:64)
    at org.gradle.wrapper.WrapperExecutor.forWrapperPropertiesFile(WrapperExecutor.java:47)
    at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:60)
Caused by: java.net.URISyntaxException: Illegal character in path at index 62: https://services.gradle.org/distributions/gradle-x.x.x-all.zip to gradle-6.7-all.zip
    at java.net.URI$Parser.fail(URI.java:2848)
    at java.net.URI$Parser.checkChars(URI.java:3021)
    at java.net.URI$Parser.parseHierarchical(URI.java:3105)
    at java.net.URI$Parser.parse(URI.java:3053)
    at java.net.URI.<init>(URI.java:588)
    at org.gradle.wrapper.WrapperExecutor.readDistroUrl(WrapperExecutor.java:81)
    at org.gradle.wrapper.WrapperExecutor.prepareDistributionUri(WrapperExecutor.java:70)
    at org.gradle.wrapper.WrapperExecutor.<init>(WrapperExecutor.java:57)
    ... 2 more
Exception: Gradle task assembleDebug failed with exit code 1
 

я видел много подобных проблем с ответами здесь, но не исправил мою проблему… я попытался удалить «gradle-wrapper.jar » и замена «distributionUrl=https://services.gradle.org/distributions/gradle-x.x.x-all.zip чтобы gradle-6.4.1-all.zip » в файле gradle-wrapper-properties и запускаю команду «flutter run» на моем терминале, но все равно получаю ту же ошибку

я попробовал «flutter doctor», который дал мне результат ниже

 Brights-MBP:~ bright$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 1.22.5, on Mac OS X 10.15.6 19G2021 darwin-x64,
    locale en-NG)
 
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✗] Xcode - develop for iOS and macOS
    ✗ Xcode installation is incomplete; a full installation is necessary for iOS
      development.
      Download at: https://developer.apple.com/xcode/download/
      Or install Xcode via the App Store.
      Once installed, run:
        sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
        sudo xcodebuild -runFirstLaunch
    ✗ CocoaPods not installed.
        CocoaPods is used to retrieve the iOS and macOS platform side's plugin
        code that responds to your plugin usage on the Dart side.
        Without CocoaPods, plugins will not work on iOS or macOS.
        For more info, see https://flutter.dev/platform-plugins
      To install:
        sudo gem install cocoapods
[✓] Android Studio (version 4.1)
[✓] Connected device (1 available)

! Doctor found issues in 1 category.
 

я знаю, что я не установил Xcode, что я сделаю позже, но не уверен, что это проблема
#что я делаю не так?

Комментарии:

1. я обнаружил ошибку… когда я скопировал новую ссылку на дистрибутив, я скопировал ее с некоторыми ошибками… вместо distributionUrl=services.gradle.org/distributions/gradle-6.7-all.zip ….. я скопировал и вставил ( services.gradle.org/distributions/gradle-x.x.x-all.zip чтобы gradle-6.7-all.zip ) когда я изменил его, все начало работать

Ответ №1:

Глядя на путь, в ошибке четко указано, что:

 Caused by: java.net.URISyntaxException: Illegal character in path at index 62: https://services.gradle.org/distributions/gradle-x.x.x-all.zip to gradle-6.7-all.zip
 

При проверке файла gradle-x.x.x-all.zip в services.gradle.org / distributions/, он не существует, пока gradle-6.7-all.zip был найден. Таким образом, может быть важным фактором, что произошла ошибка при копировании пути распространения. Соответствующий файл должен быть gradle-6.7-all.zip .

Кроме того, вы упомянули, что это был первый раз, когда Flutter был настроен в вашей macOS. При этом вы всегда можете проверить руководство из документации Flutter по установке macOS на наличие пропущенных шагов / процессов.

Добавить комментарий