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

No static method withInitial(Ljava/util/function/Supplier;)Ljava/lang/ThreadLocal #153

Open
develowper opened this issue Nov 5, 2020 · 0 comments

Comments

@develowper
Copy link

develowper commented Nov 5, 2020

i am using java code in methodchannel in flutter
and can't run project
(android studio - gradle 4.1.0 - wrapper 6.5 )

      OkHttpClient httpClient = new OkHttpClient();
  Instagram instagram = new Instagram(httpClient);
        try {
            Account account = instagram.getAccountByUsername("kevin");
            System.out.println(account.getMedia().getCount());

            result.success("INIT_SUCCESS");
        } catch (IOException e) {
            result.success("INIT_FAIL");
            System.out.println(e.getMessage());

        }

[ERROR:flutter/shell/platform/android/platform_view_android_jni_impl.cc(43)] java.lang.NoSuchMethodError: No static method withInitial(Ljava/util/function/Supplier;)Ljava/lang/ThreadLocal; in class Ljava/lang/ThreadLocal; or its super classes (declaration of 'java.lang.ThreadLocal' appears in /system/framework/core-oj.jar)
at me.postaddict.instagram.scraper.mapper.ModelMapper.(ModelMapper.java:34)
at me.postaddict.instagram.scraper.Instagram.(Instagram.java:25)
at com.varta.instagram_scrapper.InstagramScrapperPlugin.onMethodCall(InstagramScrapperPlugin.java:50)
at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:233)
at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:85)
at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:692)
at android.os.MessageQueue.nativePollOnce(Native Method)
at android.os.MessageQueue.next(MessageQueue.java:323)
at android.os.Looper.loop(Looper.java:139)
at android.app.ActivityThread.main(ActivityThread.java:6130)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
2020-11-05 05:22:06.020 24378-24378/com.varta.instagram_scrapper_example A/flutter: [FATAL:flutter/shell/platform/android/platform_view_android_jni_impl.cc(942)] Check failed: CheckException(env).
2020-11-05 05:22:06.021 24378-24378/com.varta.instagram_scrapper_example A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 24378 (crapper_example)

@develowper develowper changed the title Failed to transform org.eclipse.persistence.core-2.7.0.jar No static method withInitial(Ljava/util/function/Supplier;)Ljava/lang/ThreadLocal Nov 5, 2020
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

1 participant