-
Notifications
You must be signed in to change notification settings - Fork 189
Hey guys, I am guessing this package does not work with flutter upgrade most recent vrs. #129
Comments
Recent Flutter upgrade is making my app fail to compile too. e: C:\src\flutter\flutter_windows_v0.5.1-beta\flutter.pub-cache\hosted\pub.dartlang.org\map_view-0.0.14\android\src\main\kotlin\com\apptreesoftware\mapview\MapViewPlugin.kt: (168, 34): Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type Map<String, Any>? FAILURE: Build failed with an exception. |
FAILURE: Build failed with an exception.
|
Same for me :
Flutter doctor :
|
Facing the same issue |
The Android Gradle plugin supports only Kotlin Gradle plugin version 1.2.51 and higher. Project 'map_view' is I am facing this issue, Anyone got solution for this problem? |
have the same issue |
The package was perfectly working until I updated Flutter. Now I am getting the same error as @zanecidan every time I try to run the app in a device. Does anyone know how to fix this? Many thanks in advance! |
I'm getting the same error |
I've faced the same issue. In android build.gradle, `buildscript {
}` This worked for me. And following is my pubspec.yaml. ` flutter_sparkline: "^0.1.0" |
I applied your changes but didn't work. Maybe there is something else missing? |
Same issue -- sigh ... |
For people having this issue I found a possible fix for now.
Now it should work. |
Many thanks @JTorrus ! Your solution worked perfectly! In case that you are using Visual Studio Code, you have to follow @JTorrus 's solution but finding MapViewPlugin file in this path: <YOUR_FLUTTER_PATH>.pub-cache\hosted\pub.dartlang.org\map_view-0.0.14\android\src\main\kotlin\com\apptreesoftware\mapview |
BTW -- I just changed my pubspec to point to the PR fork that does work: map_view: Hopefully this PR will be merged soon and we'll all be ok .. but the above works fine for me. |
This worked for me (VS Code):
Line 168: Change to |
trabaja perfecto! |
Gradle project sync failed after changing line 168 in MapViewPlugin.kt inside the java folder. Might I be missing something? |
Can you post the log's output to see what exactly happens? Also, consider using sjmcdowall's solution. Should work without having to manually edit your library's code as I do. |
yes this works. PS remember to add tabs. map_view: |
This solution worked for me. Will it ever be merged? |
Well done...! that also worked for me, and now got back to the original issue "Kotlin Gradle plugin version 1.2.51" which I was trying to sort - I think pointing to the new fork may have solved another user issue of trying to get the latest version of Kotlin |
This is not working for me, still getting the same kotlin version error. Wonder what I missed out as others seems to get it working by pointing to this PR... |
It also doesn't work for me, still getting the same kotlin version error:
Solved a problem: in the file
And in file project_name/android/build.gradle in section dependencies:
|
it worked but it seemed to avoid error |
this works perfectly |
ive done it and it works |
This solution worked for me. |
The map view work perfectly
…On Sat, 2 Mar 2019, 12:08 GrahamDi ***@***.*** wrote:
This solution worked for me.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#129 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AIG4X1M0jz-CBp6S6OCB63xgXiDJoc78ks5vSmmlgaJpZM4XEm0W>
.
|
I am getting the following error ERROR: The Android Gradle plugin supports only Kotlin Gradle plugin version 1.3.0 and higher. ERROR: The Android Gradle plugin supports only Kotlin Gradle plugin version 1.3.0 and higher. |
I followed all above but I am getting this issue Unresolved reference ActivityCompat, content, v7 , etc |
I have tried above solutions. But i get an error as: What went wrong: Any help please!!! |
Hi Harsh,
You will be better served by posting this sort of question on
Stackoverflow.
I checked on that site and there is a similar question posed there. It
doesn't seem to be related to google_map_view but to your installation of
android sdk. Here is the answer that was posted:
"It seems that necessary Android 27 API's are missing in your Android sdk
directory. go to ~/library/android/sdk/tools/binand run sdkmanager --list to
check if you have platform-toolsand platforms;android-27installed. If not,
then you can install them by running sdkmanager "platform-tools"
"platforms;android-27"
If you have Android Studio, then you can install them via Android Studio's
GUI, too."
Krgrds, Graham
…On Mon, 10 Jun 2019, 23:11 Harsh Goyal, ***@***.***> wrote:
I have tried above solutions. But i get an error as:
"FAILURE: Build failed with an exception.
What went wrong:
Could not resolve all files for configuration ':map_view:androidApis'.
Failed to transform file 'android.jar' to match attributes
{artifactType=android-platform-attr} using transform PlatformAttrTransform
java.io.FileNotFoundException: C:\Users\Harsh
Goyal\AppData\Local\Android\sdk\platforms\android-27\android.jar (The
system cannot find the file specified) "
Any help please!!!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#129?email_source=notifications&email_token=AHVES4D7PNDFVUY2F5CKR4DPZ27P5A5CNFSM4FYSNULKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXLH6LY#issuecomment-500596527>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHVES4E5SEKTTLWN7S33WRLPZ27P5ANCNFSM4FYSNULA>
.
|
Hi @GrahamDi , |
Hi Harsh,
Glad you are sorted. I keep running into gradle issues related to Android
X....and I'm now struggling to get Firebase node.js functions to work
properly... so I spend my days on Google and Stackoverflow.com :-(
Krgrds, Graham
|
Hi @GrahamDi , |
The current Dart SDK version is 2.1.0-dev.3.1.flutter-760a9690c2.
Because practice_app depends on location >=1.0.1 <1.4.1 which requires SDK version <2.0.0, version solving failed.
pub get failed (1)
exit code 1
The text was updated successfully, but these errors were encountered: