flutter project doesnt compile - flutter

How to remove unwanted project from my project list?
Something goes wrong, after my yesterday Android Studio Update. Now I have to modules or smthing I dont know how to name it.
Before Studio update I had only one project in my project tree, but now I have this:
My real project is on Flutter, named petsmobile.. etc.
And after update there is another one: android.
And in Settings - Build, Execution, Deployment - Build Tools - Gradle
I have two projects instead of one:
I tried to remove unwanted project, but didnt found where

Related

FLUTTER Android Studio BUMBLEBEE: Generating signed bundle requires you to update the Android Gradle plugin to version 3.2.0 or higher

When I try to build > generate signed bundle
AS complains:
Generating signed bundle requires you to update the Android Gradle
plugin to version 3.2.0 or higher
If I click on Close this dialog and update the plugin
A further dialog appears (AS Bumblebee) titled update the Android Gradle plugin If I hit OK, the dialog vanishes, nothing happens, and I get the same complaint when I try to build a signed app bundle again.
This is really frustrating because I can't upload an app with Googlemaps without signing it. That's my whole app!
OK well similar problems have been answered a few times on StackOverflow, but some of the solutions have become antiquated other solutions don't seem relevant:
I can see no way to update Gradle through File > project structure in Android Studio Bumblebee.
If I try and update Gradle manually in android/build.gradle, well it already has gradle 7.03, which is way above 3.2.0. Although Gradle and Android Studio's Gradle plugin may have different version numbers. See the code snippet below.
I've tried using Android Studio's search box with 'update Gradle plugin' to no effect.
I've hunted around Preferences > SDK tools, but no mention of a gradle plugin.
Instead of using an app bundle I've tried generating a signed APK, but that has problems too, and the file is larger, so no easy solution.
This is the relevant part of my android/build.gradle file:
dependencies {
classpath 'com.android.tools.build:gradle:7.0.3'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.google.gms:google-services:4.3.5'
}
FURTHER investigation, gradle-wrapper.properties contains this:
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-all.zip
Which is a different version number to my android/build.gradle:
classpath 'com.android.tools.build:gradle:7.0.3'
I'm not sure why they have different numbers.
This is the last hurdle for one app, and a roadblock in another, please help. I'm totally lost, I've begun to think maybe a Kotlin plugin upgrade has caused havoc somehow.
UPDATE
I've reported the issue to Google, via AS's help menu, and in doing so the report said this...
AS: Bumblebee | 2021.1.1; Kotlin plugin:
211-1.6.10-release-923-AS7442.40; Android Gradle Plugin: (plugin
information not found); Gradle: (gradle version information not
found); Gradle JDK: version 11.0.11; NDK: from local.properties: (not
specified), latest from SDK: (not found); LLDB: pinned revision 3.1
not found, latest from SDK: (package not found); CMake: from
local.properties: (not specified), latest from SDK: (not found), from
PATH: (not found)
That's a lot of things missing! Both gradle and the gradle plugin. I've tried creating a fresh project in AS Bumblebee then asking for a signed bundle but get the same complaint, so it's not because the projects have taken a while.
Any solutions are appreciated. I thought you just downloaded Android Studio and it was all good to go... sigh.
UPDATE attempted the solution offered below, but I do not appear to have a Gradle location set, as per picture...
Finaly solve this problem.
I trid all that way mentioned in the question and stell that dump error
it doesn't look logical. but its work for me.
I closed project in android studio then open android folder at my project folder in new a android studio window,
like this below
then it take long time for downloading, analyzing, or... something,
you can see the layout is not same as main project ....
also build menu has more options...
after that tried to build app bundle and everything is good.
I think generating app bundles is not possible in main project file. we need to switch to android folder and generating it.
after all these I searched youtube generate app bundle android studio flutter
https://www.youtube.com/watch?v=g0GNuoCOtaQ
in this building app bundle in another way that doesn't have these headaches
Well in the end I solved it. In the left hand project files pane I right-clicked on Android > Open in Android Studio, Gradle then took a long time reindexing the project and offered to update the project's Gradle version, which this time it did successfully. HALLEYUH!
I seldom push out signed apps, so I'd forgotten the process for doing this, and the fact that the AS Flutter plugin offered me the option of Tools > build signed app bundle within the plugin led me away from how I've successfully attained a signed app in the past.
I think really the Flutter team shouldn't offer this option if it's not going to work reliably, but the solution is to do it the old way. Change the IDE back into what I presume is 'Java app' view, and be patient while AS runs around fetching gradle and Android SDK updates, reindexing. Then seek Build > signed app bundle from there.
Thanks everybody for your attention, and apologies for wasting energies. x Sam
In Settings, 'Build, Execution, Deployment', 'Build Tools', 'Gradle' I had a 'Use Gradle From' set to a 'Specified Location' and it was breaking the build. It must have come from some previous version. I changed it to "'gradle-wrapper.properties' file" and everything went fine.
I also noted a much larger 'aab' file in Bumblebee. I know I added stuff, but not 8 megabytes worth. It was only code, and maybe a thousand lines.

Disable automatic Gradle build in Eclipse for one project

I have multiple gradle projects in my workspace which get build automatically.
The problem arrises from one project which fails this automatic builds so an error dialog pops up regulary which is quite annoying. Since the project is just a simple prototype and the only person which has it running locally is currently on vacation there is no fix in sight.
I could easily close the project in eclipse but I have to refer regulary to it as a code reference which obviously isn't possible when the project is closed.
Is there an easy way to disable the automatic Gradle build for only this project while keeping the builds for the other Gradle projects in my workspace functional?
Many thanks in advance.
Okay I found the way.
Just right click on the project in the package explorer and choose Gradle -> Disable Dependecy Management.

Changes to HTML files not showing on built phonegap 3.0 app

So I have a Phonegap 3.0 app (project folder), and it's project (project/platforms/android) on Eclipse.
The problem is that when I change project/www/index.html , and tell Eclipse to Run the project, the changes don't appear on my device.
I noticed that Eclipse was saying Application already deployed. No need to reinstall. so I tried adding a space in a .java file so that Eclipse would notice some change in the project and rebuild it. It worked, Installing RingTo.apk... Success! showed on the log, but still the changes to index.html didn't show at the device...
Changes made to the files inside project/www/ are not automatically copied to your project (in your case to project/platforms/android/assets/www/). You have to run the following command to iteratively copy the changes to platform specific projects and build them. Open the command prompt and navigate to the root of the project (In this case project/). Or you can even right click on the project/ folder while pressing the shift key. Then run the following command:
cordova build
You can optionally limit the scope of each build to specific platforms:
cordova build android
Alternatively, you can run the following commands:
cordova prepare android
cordova compile android
In this case, once you run prepare, you can use Eclipse with ADT installed as an alternative to modify and compile the "platform-specific code" that Cordova generates within platforms/android.
Source - Cordova Docs
So, when you have made a slight modification in a .java file (which is an android platform specific file) and tried to rebuild it within Eclipse, you were actually trying to rebuild the same project without any actual modifications.
Another alternative would be to copy the files within the project/www/ to project/platforms/android/assets/www/ by hand and then build it within Eclipse, which would, of course, be an unnecessary pain.

Subversion with Eclipse for android

Okay I am starting to give up with this. I have been trying to setup sebversion in Eclipse for my android project. I have been following the following tutorial
http://blog.bauson.com/eclipse-subclipse-svn-hostgator-com.html
I got the following:
Created a repository called myRep
Created a project under with source files myRep/TestProject and attached it to trunk
installed subclipse and got it to grab the repository
Now when, it says "Checkout as a project configured using the new project wizard", I get to choose the type of project. If I choose android application project then it creates a default android project and nothing is checked out. But when I choose General Project, it does grab the whole thing in the following structure
Repositony->TestProject->Trunk->All my android files and folders
However I want it to be android project so I can compile and run it. I did a lot of googling and I need your help pleeease!
Never mind, I figured it out. Apperently, when you choose the repository you have to right click and click refresh and it will show you a list of Folders (stupid eclipse does not do it automatically). Then you choose your project and create it as a new project. Voilla, you get it compiling and running

How to compile greenDao example without eclipse?

How to compile GreenDao examples and DaoExampleGenerator without eclipse?
You can use Android Studio to do it.
Gradle is integrated and download dependent libraries.
Just be aware on the paths in Android studio (uses the main project path containing all modules (one module in android studio is a project in Eclipse).
It worked for me.
dropdown on the run button click on Edit Configuration, then, click + button and add new Application and on config : Check on below image then click apply and ok.
Next what you need to do is on dropdown, choose your daogenerator then run the application it will compile the dao class
then it should looks like above and click run. It should works!
Good luck!!