Git Product home page Git Product logo

geo_location_finder's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

geo_location_finder's Issues

Android X support.

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)

Task :geo_location_finder:compileDebugJavaWithJavac FAILED

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...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.