question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Entry is not public in LinkedHashMap; cannot be accessed from outside package

See original GitHub issue

Hi,

android compilation fails with error

...\platforms\android\app\src\main\java\com\synconset\ImageFetcher.java Error:(293, 58) error: Entry is not public in LinkedHashMap; cannot be accessed from outside package Error:Execution failed for task ':app:compileDebugJavaWithJavac'. Compilation failed; see the compiler error output for details.

Cordova 8 Gradle 3.0 defaultCompileSdkVersion=26

Any suggestions how to fix this problem?

Thank you very much for your help!

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:2
  • Comments:10

github_iconTop GitHub Comments

2reactions
dansterrettcommented, Feb 18, 2019

This bug was a showstopper for me. I ended up using to the camera plugin (https://github.com/apache/cordova-plugin-camera) instead. Just pass PictureSourceType: PHOTOLIBRARY, and it will open the photo library instead of the Camera.

2reactions
mkihellascommented, Mar 19, 2018

Hey guys, I had the same problem while I was trying to find a solution for an other issue: https://github.com/wymsee/cordova-imagePicker/issues/263

The problem was on a variable mistake in ImageFetcher.java. https://github.com/mkihellas/cordova-imagePicker/commit/61c18fc63fc9a5e69296715d76e38d043741dcd9#diff-76acd7e874d9233cd649120f24357319

We can use our repositery that has the fix: https://github.com/mkihellas/cordova-imagePicker.

Keep in mind that I also changed some things in plugin.xml in order to make it build successfully with CLI 8.0.0 on PhoneGap.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Entry is not public in TreeMap; cannot be accessed from ...
The problem is that the compiler's behavior is making code depending on implementation details. If TreeMap does not have an internally used, non ......
Read more >
not public in java. can't be accessed from outside package
MainProgram.java:120: java.util.HashMap.Entry is not public in java. Is anyone able to explain to me what this is actually saying?
Read more >
LinkedHashMap.Entry
(package private) void, recordAccess(HashMap m) This method is invoked by the superclass whenever the value of a pre-existing entry is read by Map.get...
Read more >
Java AC Solution via overriding LinkedHashMap ... - LeetCode
Entry <Integer, Integer> eldest) { return size() > capacity; } }; } public int ... is not public in LinkedHashMap; cannot be accessed...
Read more >
HashMap entrySet() Method in Java - GeeksforGeeks
Syntax: · Parameters: The method does not take any parameter. · Return Value: The method returns a set having same elements as the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found