I am using flutter location package ^4.1.1 and this is the error message I am getting.
My flutter doctor results show that I am using JDK 1.8..
So my question is, do I need to configure the java source in my flutter project, in the build.gradle or some other place in order to make it point to my current version of Java? In my build gradle I did see a dependency implementation of kotlin pointing to jdk7. Tried changing that to jdk8 but didn't work.
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"}
I've done a ton of searches on google but couldn't find anyone in the same predicament as me which is why I finally gave up and had to make an account here to ask for help. Just a side note, I am using vscode for developing this project as part of a flutter course. Thanks in advance for the help.
[RESOLVED] Turns out the issue was not on my side but the developer's version of the package. He has released a patch fix to that package ^4.2.1. 3 days wasted trying to fix this issue on my end but all's well that ends well I guess. Hope this helps someone else facing the same issue.
Related
I updated the Gradle plugin version from 3.3.2 to 3.4.0 and Gradle to version 5.1.1. I know for sure this causes a library to be unknown when I import it. It gives the error unresolved reference.
Cleaning the project, rebuilding, Invalidate caches/Restart and throwing away the .idea file all do not solve this issue. The only thing that worked for me was restoring the Gradle version back to 3.3.2. But this is not what I want.
The problem I have has to do with ROS libraries; ROS Java bootstrap's message_generation to be specific. This library has the same relative path as the rosjava library; namely org.ros.*. I am not sure if this has anything to do with the issue.
What can I do about this? Thanks a lot: all help is very welcome!
The solution was described on the Gradle github issue page where I also described my problem. What is described is that ROS is publishing the wrong metadata.
"This says that you only need the jar that contains org.ros.internal.message.Message when running your application and not when you're compiling it, which doesn't seem to be the case. To fix this, you'll need to add the extra dependencies that ROS isn't including for compilation."
I fixed it like described; I added the dependencies corresponding to the libraries that were not found after the update. This did the trick for me:
implementation 'org.ros.rosjava_messages:sensor_msgs:1.12.5'
implementation 'org.ros.rosjava_bootstrap:message_generation:0.3.3'
implementation 'org.ros.rosjava_messages:std_msgs:0.5.11'
implementation 'org.ros.rosjava_messages:geometry_msgs:1.12.7'
I am looking for help with the Android AOSP setup for a project. I am trying to build Android 4.3_r1 from source on Ubuntu 16.04.3 LTS (Xenial) , I have installed all the dependencies and the oracle Java 6 . The build runs well until one point where I get the following error :
******************************
You have tried to change the API from what has been previously
approved.
To make these errors go away, you have two choices:
1) You can add "#hide" javadoc comments to the methods, etc. listed
in the errors above.
2) You can update current.txt by executing the following command:
make update-api
To submit the revised current.txt to the main Android repository,
you will need approval.
******************************
Tried removing the current.txt ,redoing the steps from scratch , make update-api also still facing the same error.Any help would be appreciated .
So after trying out several fixes it did not work out for me, so i reinstalled java and the AOSP to get it to work.
In the past I could load a github program to work in my android studio program but with the last update either I went full stupid or something is wrong. I am trying to get this https://github.com/barteksc/AndroidPdfViewer in my program and I am adding my compile in my app and downloading and unzipping the program. When I add the view to my app it breaks. I hope you guys can help because I feel a bit crazy at the moment.
Thank you.
If you are trying to load the project, you may import as a eclipse project to migrate to AS + gradle.
If you are trying to use as library, AndroidStudio made it difficult to add libraries that are not as a artefact loaded by gradle.
So usually you find the gradle dependency into the project page and add it into your gradle, in your case it is exactly:
compile 'com.github.barteksc:android-pdf-viewer:2.7.0'
sincerely, I tried almost EVERYTHING that is on the internet.Even not directly related to this specific problem.This problem is happening in Android Studio even before I Installed the latest version.I was about a month without working in Android Studio.The only thing related to Gradle that I messed with, was adding the LibGDX to Eclipse for a University work.I may be talking nonsense, but a think the problem appeared after that, because I had to install the SDK for Eclipse and this may be caused the issue.
When I open Android, I can't build my apk.So I made several changes to the app and noticed that nothing changed.So I Looked to the Gradle build and saw:
Error:Failed to complete Gradle execution. Cause: unknown.
in Gradle Sync I got:
Gradle 'BluetoothConnector' project refresh failed
So I tried:PrintScreen of the Android Studio error
◘Updating Android Studio
◘Turning off Oflline mode.
◘Reinstalling(I did it several times with false hopes) every thing
related to Java(JDK,Java,JRE,Eclipse,Android Studio).
◘Checked the project Structure, add Dependecies entries.
◘Invalidade Cache/Restart
◘Export/Reimport.
So as you fellow programmers can see, I'm kind of struggling hard with this problem.Before I ask a question, a very long battle has already been going on for quite a while.And I simply don't know what else to do.
I tried starting a new application, and the same refresh error appears. All my other apps as well.
Unfortunely the only solution was a clean formating of the PC.I have no Idea what caused this, but it was the only thing left to do.And it worked.If Anyone come across this issue, that's really what do to.
Try this, it worked for me.
1. Change compile to implementation or api (As compile is now deprecated)
2. Clean the project
Check following links for more details:
Gradle Project refresh failed error
Use the new dependency configurations
Imported an Eclipse Project to Android Studio having library dependencies of Sliding Menu, ViewPager, PullToRefresh. Import was successful but after syncing grade files getting duplication errors in values.xml.
~/app/build/intermediates/res/merged/debug/values/values.xml
Can anyone suggest me how to resolve this issue?
Please make sure that you migrated your project in a standard way. You should use Android migration tools for this. Then, it will give you a summary of changes and failures. So, you can spot your issue and find its solution. Make sure you keep the default setting in order to make a clean Android studio project. Please follow this post step by step and let me know if you still have issue.
https://stackoverflow.com/a/36533889/5475941
I hope it helps.