Android Studio

Hello, everyone please I am having an issue I have the latest android studio installed I am using a Tecno mobile phone and oreo 8.1 andrid version. I can see my device in the android studio but How do I run it to be able to use it on my physical android device I have searched and I am stuck I really don’t know what to do next. Please guys I would like if someone can help me with steps. android development is new to me so i really need help. In the course just code walk through no way to tell us how to run it for new developers and what we need.


the picture is a screen shot of my android studio.

Hello @Nnaemeka_Nwankwo

I am not sure but did you pair the devices with your system probably that could solve your issue.

See in your image where it give device info, next to it shows paired device, is it paired there?

Regards
DP

hello @Deepti_Prasad I paired anytime i try to build it throws an error

Unable to load class ‘org.gradle.initialization.BuildCompletionListener’ org.gradle.initialization.BuildCompletionListener Gradle’s dependency cache may be corrupt (this sometimes occurs after a network connection timeout.) Re-download dependencies and sync project (requires network) The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem. Stop Gradle build processes (requires restart) Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.

So I don’t know why I have tried everything possible. Since we are new to this i suggest we check versions of the android studio that was used. and the dependencies and also if we can like get what needs to be changed to make it. for example I am using the latest android studio iguana. Secondly, if you can work me through the steps to make it work on my device. because when i used a demo project I was able to run the hello android on my phon but the projects are not even building. So please I need help. there’s a sense of fufilment when you get things to work and see your progress and everyone needs to understand how it works and what to do from there we can keep learning.

Hello @Nnaemeka_Nwankwo

because your Gradle is corrupted you are not able to pair

This is what I found on stack overflow as suggestion for the issue encountered by you.

The gradle is corrupt,delete your gradle. On Intellj go to Settings; Build, Execution, Deployment then Gradle and change to a local gradle distribution and download the dependencies.

On GitHub, i found the below

See another thread on stack overflow, which might help you

basically you need to delete the cache from your systems, re-download the dependencies.

@Jamal022 hey busy buddy, kindly chip in here, learner is having issue, in case my linked response don’t help him, please guide him further.

Regards
DP

Thank you so much. I’ll get back when I try the solutions.

Thank you @Deepti_Prasad everything was tried but no luck yet. please if any of the mentor can try to download the android studio iguana and the assignment so they can also see issues because I am noticing they are many things to change. For a beginner in android development the errors are many and no much help online as each case is unique.

1 Like

Hi there, did you ever get sorted installing the android studio dev environment? Its pretty painful difficult install, burning up many hours, from what i can see.

i just downloaded android studio ladybug 2024.2.1 . The cats &dogs app will not load without loads of errors. These errors appear to be related to a gradle dependency. I already have JAVA on my laptop.

Did you have to download diffierent versions of gradle (and then modify cats and dogs gradle files, and android studio settings) to get this to work?
Perhaps you had to modify gradle/wrapper/gradle-wrapper.properties ?

i get all sorts of error upon attempting to open cats &dogs like…

Could not open cp_init remapped class cache for

Could not open cp_init generic class cache for initialization script C:\Users\xxx\ijWrapper1.gradl
Could not initialize class org.codehaus.groovy.vmplugin.v7.Java7

Any tips?! :slightly_smiling_face: :pray:

i seem to have issues with ‘kotlin’ installation also, whatever that is. It does not appear to be installed correctly, and the IDE did not install it or gradle correctly. Who knows what other dependencies it did not install

@Jamal022

I don’t know if you are still active, but kindly look into the learner’s query as I don’t have access to this course.

regards
DP

A couple of things to add here.

i was able to successfully create/run a hello world app, based on the developer.android website training (setup android studio) . It uses latest kotlin, latest gradle.

What gradle version is needed for the deeplearning app?

what should the gradle-wrapper.properties settings be?
what should android studio gradle settings be?

There are more gradles settings in android studio here:
In setting / build execution/deployment / build tool / gradle there are more settings:
gradle user home
gradle projects / distribution.

This settings can be local installation or wrapper. I have it at local installation pointing to gradle-8.11.1 currently - and this is definitely not compatible with the app.

And another thing. After having successfully created a helloworld app android studio, i re downloaded cat and dogs app to make sure i hadnt broken any files.

It looks to me like this app is never going to run in the modern ENV, for the following reasons: