Skip to content
This repository has been archived by the owner on Apr 6, 2021. It is now read-only.

project ':flutter_p2p' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.71 #23

Open
megatron-siva opened this issue Sep 27, 2020 · 5 comments

Comments

@megatron-siva
Copy link

FAILURE: Build failed with an exception.

  • What went wrong:
    The Android Gradle plugin supports only Kotlin Gradle plugin version 1.3.0 and higher.
    The following dependencies do not satisfy the required version:
    project ':flutter_p2p' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.71

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

I have upgraded flutter to the latest version.Plz help me.

flutter doctor -v
image

@AdvaitKale01
Copy link

Same! Any Solutions?

@megatron-siva
Copy link
Author

Same! Any Solutions?

In "your_project/android/build.gradle" file , under dependencies change classpath 'com.android.tools.build:gradle:3.5.0' to classpath 'com.android.tools.build:gradle:3.2.1'
This builds the project successfully.But,I don't think this is the right solution.
Developers has to fix this issue!!..

image

@AdvaitKale01
Copy link

Same! Any Solutions?

In "your_project/android/build.gradle" file , under dependencies change classpath 'com.android.tools.build:gradle:3.5.0' to classpath 'com.android.tools.build:gradle:3.2.1'
This builds the project successfully.But,I don't think this is the right solution.
Developers has to fix this issue!!..

image

The apo runs in debug but not in apk release mode. Should use nearby connections api by google

@eldadbarkai
Copy link

eldadbarkai commented Mar 15, 2021

I am new in Flutter/Dart.

However, I wrote a tiny application that tries to work with flutter_p2p.

I have the same problem that is described above.

I have changed com.android.tools.build:gradle:3.5.0 to com.android.tools.build:gradle:3.2.1.

When I run the application and call to isLocationPermissionGranted, I receive the following error:

E/flutter ( 3443): [ERROR:flutter/lib/ui/ui_dart_state.cc(186)] Unhandled Exception: MissingPluginException(No implementation found for method isLocationPermissionGranted on channel de.mintware.flutter_p2p/flutter_p2p)
E/flutter ( 3443): #0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:156:7)
E/flutter ( 3443):
E/flutter ( 3443): #1 FlutterP2p.isLocationPermissionGranted (package:flutter_p2p/plugin.dart:24:12)
E/flutter ( 3443):

What can I do in order to solve this issue.

@muhammedkamal
Copy link

Same! Any Solutions?

In "your_project/android/build.gradle" file , under dependencies change classpath 'com.android.tools.build:gradle:3.5.0' to classpath 'com.android.tools.build:gradle:3.2.1'
This builds the project successfully.But,I don't think this is the right solution.
Developers has to fix this issue!!..
image

The apo runs in debug but not in apk release mode. Should use nearby connections api by google

after I do this I recieved a new error

  • What went wrong:
    A problem occurred evaluating root project 'android'.

A problem occurred configuring project ':app'.
Failed to notify project evaluation listener.
> 'org.gradle.api.file.RegularFileProperty org.gradle.api.file.ProjectLayout.fileProperty(org.gradle.api.provider.Provider)'

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants