flutter-devs / geo_location_finder Goto Github PK
View Code? Open in Web Editor NEWFlutter plugin for getting accurate locations on the Android & iOS devices.
License: Other
Flutter plugin for getting accurate locations on the Android & iOS devices.
License: Other
with follow lines added to android/gradle.properities
android.enableJetifier=true
android.useAndroidX=true
I got this error when build android apk(it's in Chinese, but I think it's OK to understand):
Launching lib/main.dart on Redmi Note 7 in debug mode...
/flutter/.pub-cache/hosted/pub.flutter-io.cn/geo_location_finder-1.0.7/android/src/main/java/com/successive/adhoc/flutterlocationplugin/util/LocationFusedAPIUtility.java:9: 错误: 程序包android.support.annotation不存在
import android.support.annotation.NonNull;
^
/flutter/.pub-cache/hosted/pub.flutter-io.cn/geo_location_finder-1.0.7/android/src/main/java/com/successive/adhoc/flutterlocationplugin/util/LocationFusedAPIUtility.java:10: 错误: 程序包android.support.annotation不存在
import android.support.annotation.Nullable;
^
/flutter/.pub-cache/hosted/pub.flutter-io.cn/geo_location_finder-1.0.7/android/src/main/java/com/successive/adhoc/flutterlocationplugin/util/LocationFusedAPIUtility.java:11: 错误: 找不到符号
import android.support.v4.app.ActivityCompat;
^
符号: 类 ActivityCompat
位置: 程序包 android.support.v4.app
/flutter/.pub-cache/hosted/pub.flutter-io.cn/geo_location_finder-1.0.7/android/src/main/java/com/successive/adhoc/flutterlocationplugin/FlutterLocationPlugin.java:13: 错误: 程序包android.support.annotation不存在
import android.support.annotation.NonNull;
^
/flutter/.pub-cache/hosted/pub.flutter-io.cn/geo_location_finder-1.0.7/android/src/main/java/com/successive/adhoc/flutterlocationplugin/FlutterLocationPlugin.java:14: 错误: 找不到符号
import android.support.v4.app.ActivityCompat;
^
符号: 类 ActivityCompat
位置: 程序包 android.support.v4.app
/flutter/.pub-cache/hosted/pub.flutter-io.cn/geo_location_finder-1.0.7/android/src/main/java/com/successive/adhoc/flutterlocationplugin/util/LocationFusedAPIUtility.java:94: 错误: 找不到符号
public void onConnected(@Nullable Bundle bundle) {
^
符号: 类 Nullable
位置: 类 LocationFusedAPIUtility
/flutter/.pub-cache/hosted/pub.flutter-io.cn/geo_location_finder-1.0.7/android/src/main/java/com/successive/adhoc/flutterlocationplugin/util/LocationFusedAPIUtility.java:107: 错误: 找不到符号
public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {
^
符号: 类 NonNull
位置: 类 LocationFusedAPIUtility
/flutter/.pub-cache/hosted/pub.flutter-io.cn/geo_location_finder-1.0.7/android/src/main/java/com/successive/adhoc/flutterlocationplugin/util/LocationFusedAPIUtility.java:57: 错误: 找不到符号
if (ActivityCompat.checkSelfPermission(context, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(context, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {
^
符号: 变量 ActivityCompat
位置: 类 LocationFusedAPIUtility
/flutter/.pub-cache/hosted/pub.flutter-io.cn/geo_location_finder-1.0.7/android/src/main/java/com/successive/adhoc/flutterlocationplugin/util/LocationFusedAPIUtility.java:57: 错误: 找不到符号
if (ActivityCompat.checkSelfPermission(context, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(context, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {
^
符号: 变量 ActivityCompat
位置: 类 LocationFusedAPIUtility
注: /flutter/.pub-cache/hosted/pub.flutter-io.cn/geo_location_finder-1.0.7/android/src/main/java/com/successive/adhoc/flutterlocationplugin/FlutterLocationPlugin.java使用或覆盖了已过时的 API。
注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
9 个错误
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':geo_location_finder:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
* 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.
* Get more help at https://help.gradle.org
BUILD FAILED in 7s
*******************************************************************************************
The Gradle failure may have been because of AndroidX incompatibilities in this Flutter app.
See https://goo.gl/CP92wY for more information on the problem and how to fix it.
*******************************************************************************************
Gradle task assembleDebug failed with exit code 1
Exited (sigterm)
Link: https://pub.dev/packages/geo_location_finder#-readme-tab-
Under Readme
->For help getting started with Flutter, view our online documentation.
the documentation linked to https://flutter.io/
instead of Doc page
not found Compiling with JDK Java compiler API. D:\programs\flutter\.pub-cache\hosted\pub.flutter-io.cn\geo_location_finder-1.0.8\android\src\main\java\com\aeologic\adhoc\geo_location_finder\util\LocationFusedAPIUtility.java:9: error: package android.support.annotation does not exist import android.support.annotation.NonNull;
Bro, How can I solving it?
I try to changed gradle to v3.3.0,but it makes not sense...
I have tried it works. Only if it already we have a enable GPS location. otherwise, it's not getting the locations.
kindly help us. I'm in the middle of developing
my email id is [email protected]
The Plugin is not working on iOS devices.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.