Run old android app in android studio error - android

I have a github code which is from 2018, https://github.com/puzannshakya/Currency-Detection
I am trying to run this app, but it is giving me errors like gradle should be 4.1 and higher, even after upgrading the gradle still giving errors of stdlib not found.
Can anyone help me to update this app, and use in my android studio and be able to run?

Related

Plugin incompatible with the new build found: Kotlin

I was going to upgrade from Android Studio Bumblebee to Android Studio Dolphin. However, I seem to get an unexpected warning from Android Studio:
As you can see the text in red, it shows that newer Android Studio's build does not support Kotlin! However, in details of Android Studio Dolphin, and image shows Kotlin files being programmed, which means Android Studio Dolphin's build actually supports Kotlin:
Should I update or not, and how should I fix this error, as I am a Kotlin Programmer.
Can somebody please help? Would appreciate it.
Edit
As for the Kotlin version, I have the latest Kotlin Version already:
Full answer:
I faced with the same issue and after research I found people say that reinstalling Kotlin plugin or removing it and update Studio should solve the issue, because Dolphin already includes the Kotlin plugin by default.
BUT For sure you should NOT remove the Kotlin plugin, because otherwise Android Studio will fail launching and after that you need to find on your PC the file named 'disabled_plugins.txt' and remove from it Kotlin. OR completely remove Android Studio and reinstall it from the scratch.
Personally I ignored this issue and just updated the Studio. Works well and Kotlin plugin installed. Also I noticed that before update I had Kotlin version 1.7.10 and AS didn't ask for update the plugin. After update I've got 1.7.20.
Good luck :)

I am always receiving the error "Content not allowed in prolog" in Android Studio even with built-in android studio apps

I seem to always be getting the error: "content not allowed in prolog", even when using the built-in android studio apps. Not sure what is happening. Please help! Using Android Studio 4.0 and android gradle plugin version 4.0.0 and gradle version 6.1.1 according to my project structure if that helps.
Try this:
Close android studio.
Delete all the contents of below directories.
C:\Users\USER_NAME\.android\build-cache
C:\Users\USER_NAME\.android\cache
C:\Users\USER_NAME\.gradle\caches
Start Android Studio.

Kotlin Kapt doesn't show databinding errors when running from Android Studio

I'm using Kotlin kapt version 3, whenever there is a problem with databinding, the build from Android Studio fails with a very generic error:
Error:Execution failed for task ':app:kaptDev21DebugKotlin'.
> Internal compiler error. See log for more details
When I run the same task from the console, the real problem shows up. Somehow the AS doesn't show this error in message window.
I'm using Android Studio version 2.3.3
You can see the error in Gradle Console, something similar to this :
Android Studio 3.0 and later version of android studio support Kotlin better. AS 3.0 comes with default support with Kotlin as AS 2.3 requires a plugin to be installed.
Android Studio Team from google and IDEA intellij Team from JetBrain working together to make Kotlin compatible with Android Studio.
Right now 3.0 version comes with Canary version(Preview version) and every week a new preview version (Canary 1, Canary 2 ... and so on) rolls out fixing reported bugs.
So you should try Android Studio 3.0 Canary 9 latest version as of now.
If still problem persists, report this bug.

Project Doesn't Build in Android Studio 2.3.1 at all

Yesterday I updated my Android Studio version from 2.3 to 2.3.1 and today when I tried to create a New Project this familiar screen should disappear after sometime but it didn't disappeared after 30 minutes of waiting. Anyhow I managed to close android studio by Task Manager and started Android Studio again and created a new project again and the same thing happened again.
Although when I open my previous projects again they are working fine but the problem is with the new project creation only. I am having a good working internet connection along with the latest version of gradle 3.4.1
Any idea why this would be happening?
How to resolve this?
I had this "problem" with android studio but after looking here and there I found out that when I update gradle version for my project, for example from 2.2 to 2.2.1, if I do not have that gradle version already android studio tries to download gradle distribution for that version to build the project and since I have poor internet connection, it was the download which was taking time.
Maybe your android studio is downloading the gradle too and it takes time.

gradle sync taking too much time android studio

I have imported a Android Studio 2.1 project to Android Studio 2.2.3. But the gradle sync is taking too much time. Current Gradle version is 2.14.1 Even I have used another gradle(2.10) No error shown on the event log. Have no idea where I am stuck. Don't know what to do.

Categories

Resources