Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encounter no able to compile #4

Closed
xuncoder opened this issue Dec 5, 2018 · 2 comments
Closed

Encounter no able to compile #4

xuncoder opened this issue Dec 5, 2018 · 2 comments

Comments

@xuncoder
Copy link

xuncoder commented Dec 5, 2018

Hi, I have encounter the issues when I compile my program with your plugin
e: C:\Users\user\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\flutter_country_picker-0.1.0\android\src\main\kotlin\rocks\biessek\fluttercountrypicker\FlutterCountryPickerPlugin.kt: (26, 46): Type inference failed. Expected type mismatch: inferred type is ArrayList? but ArrayList was expected

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':flutter_country_picker:compileDebugKotlin'.

Compilation error. See log for more details

The gradle version I used is 'com.android.tools.build:gradle:3.1.2' without set other kotlin plug.

Below logic is how I used your country picker plugin:
Widget countryField(){

if (_isChangeInfo == true ) {

Widget countryMenuList = new Container(
 child: new Row(
    children: <Widget>[
      CountryPicker(
        onChanged: (Country country) {
          setState(() {
            _selected = country;
            _countryName=country.name;
          });
        },
        selectedCountry: _selected,
      ),
      Text(_countryName, style: new TextStyle(color: Colors.black, fontSize: 16.00),),
    ],
  )
);
@biessek
Copy link
Owner

biessek commented Dec 8, 2018

I've just uploaded 0.1.1. Please upgrade it when available to check if the error persists

@xuncoder
Copy link
Author

It worked after upgrade to 0.1.1. Thanks for upgrade

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

No branches or pull requests

2 participants