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.
Related
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.
I try to migrate my old project to Android X. I searched about it and migrated successfully.
I have one problem.In my project,I'm using Card.io. I downloaded and imported into the project from here
https://github.com/card-io/card.io-Android-source
When I try to run my app ,I have this error message
I searched much ,but still can't solve this problem. Unfortunately,I can't open new issue in Github repository, because repository has only read status.
Can anyone explain ,how I can solve this problem?
Thanks
We converted to AndroidX a large project and use Card.io.
We have
implementation 'io.card:android-sdk:5.5.1'
in the build.gradle and have no issues.
Are you trying to use the source? If you are and don't customize the source, the library implementation should be the best usage.
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
I'm using eclipse ADT (most recent version) to develop some android apps. I've followed the getting started tutorial at the dev.android.com and it worked just fine.
But when i tried to create another project with the same targets and sdk's, i've got nothing but errors:
Some errors and my sdk's:
That's the same sdk's i used before these errors started showing up.
What can be causing this?
EDIT: my project won't generate the R.java file
You might need to add a support library to your new project.
Check this link for downloading the support libraries -
http://developer.android.com/tools/support-library/setup.html#download
Please notice that you need to import them into your eclipse and then include one (preferably the newest, not sure about this) in your project.
EDIT:
Before downloading the support libraries you should first check if you have them already.
Try this, right click project folder in the eclipse package explorer, Properties>Android>Library>Add>select a library if you have one.
There might be an invalid library included in your project already, if that happens then you will see it in the Library>Add> menu, remove it and add a new one.
You might have clean your project ........
if yes.....you must check whether R.java file is present in **Project(your project)->gen->package name->R.java**
if not than u have to update Tool Folder in SDK manager