android build error Could not get unknown property 'android' for project ':open_file' of type org.gradle.api.Project.
See original GitHub issueThe plugin worked fine until today until, after update to 3.0.3 version i get this error
* What went wrong:
A problem occurred configuring project ':open_file'.
> Could not resolve all artifacts for configuration ':open_file:classpath'.
> Could not find builder-4.0.2.jar (com.android.tools.build:builder:4.0.2).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/com/android/tools/build/builder/4.0.2/builder-4.0.2.jar
> Could not find bundletool-0.13.2.jar (com.android.tools.build:bundletool:0.13.2).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/com/android/tools/build/bundletool/0.13.2/bundletool-0.13.2.jar
> Could not get unknown property 'android' for project ':open_file' of type org.gradle.api.Project.
now i get this error with any version of open file 😐 , and after delete open file in dependencies gradle build successfuly, i can download https://dl.google.com/dl/android/maven2/com/android/tools/build/bundletool/0.13.2/bundletool-0.13.2.jar with chrome and my internet is not a problem and I even tested with several vpn,
[√] Flutter (Channel stable, 1.22.3, on Microsoft Windows [Version 10.0.19041.572], locale en-US)
• Flutter version 1.22.3 at C:\Src\flutter
• Framework revision 8874f21e79 (3 weeks ago), 2020-10-29 14:14:35 -0700
• Engine revision a1440ca392
• Dart version 2.10.3
[√] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
• Android SDK at C:\Android
• Platform android-29, build-tools 29.0.3
• ANDROID_HOME = C:\Android
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
• All Android licenses accepted.
[!] Android Studio (version 4.0)
• Android Studio at C:\Program Files\Android\Android Studio
X Flutter plugin not installed; this adds Flutter specific functionality.
X Dart plugin not installed; this adds Dart specific functionality.
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
[√] VS Code (version 1.51.1)
• VS Code at C:\Users\Mrhaydari\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.16.0
[√] Connected device (1 available)
• sdk gphone x86 (mobile) • emulator-5554 • android-x86 • Android 11 (API 30) (emulator)
minSdkVersion 16
targetSdkVersion 29
<meta-data
android:name="flutterEmbedding"
android:value="2" />
<provider
android:name="androidx.core.content.FileProvider"
android:authorities="${applicationId}.fileProvider"
android:exported="false"
android:grantUriPermissions="true"
tools:replace="android:authorities">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/filepaths"
tools:replace="android:resource" />
</provider>
gradle cleancachebuild flutter pub repair flutter clean cache remove gradle update grade not working !
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Could not get unknown property 'android' for root project ...
The error Could not get unknown property 'android' for root project 'projectName' of type org.gradle.api.Project. means you applied the ...
Read more >Could not get unknown property 'android' for project ':app' of ...
Description: I cannot compile after adding the onesignal cordova plugin even if I apply it in the app/build.gradle and before com.android.
Read more >app' of type org.gradle.api.project. - You.com | The Search ...
The error Could not get unknown property 'android' for root project 'projectName' of type org.gradle.api.Project. means you applied the ...
Read more >Troubleshooting - DashO Gradle 3.4 - PreEmptive Solutions
Make sure you are using version 3.0.3 (or later) of the DashO Gradle Plugin. Error: Could not get unknown property 'classesDir' for main...
Read more >How to fix could not get unknown property - Gradle Forums
How to solve this issue of “Missing Property Exception”.Could not get property '32' for object of type ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
got this error The prefix “tools” for attribute “tools:replace” associated with an element type “provider” is not bound. and unable to build
Using this instead fixes the error. Don’t forget to replace applicationId. 😊