Android application only works on my device - android

my current android application only works as required on my device.
when any of my colleagues build the same github branch the app builds and installs ok however the compose navigation does not work
if i build an apk and distribute it to my team this works fine
we have compared gradle.properties and local.properties for all team members and these are identical to mine.
we are all using the same Android Studio version of
Android Studio Flamingo | 2022.2.1 Canary 2
Build #AI-222.4167.29.2221.9093980, built on September 22, 2022
Runtime version: 11.0.15+0-b2043.56-8887301 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 10.15.7
GC: G1 Young Generation, G1 Old Generation
Memory: 4096M
Cores: 12
Metal Rendering is ON
Registry:
external.system.auto.import.disabled=true
ide.text.editor.with.preview.show.floating.toolbar=false
ide.images.show.chessboard=true
Non-Bundled Plugins:
com.android.aas (3.5.1)
what could be causing this issue?
what config are we missing?
the part of the app that does not work for my colleagues is that the compose navigation does not work, the app employs a backdrop with menu items that allow the user to navigate to other sections of the application. clicking on these menu items only works for me

we resolved this issue by deleting the .idea folder of all my teams Android Studio installations

Related

How to switch to beta channel on Android Studio Chipmunk?

Followed the instructions as given here - https://developer.android.com/studio/preview/install-preview#change_your_update_channel
There is no dropdown to select the channel. Is there any other way?
Android Studio Chipmunk | 2021.2.1 Patch 1
Build #AI-212.5712.43.2112.8609683, built on May 18, 2022
Runtime version: 11.0.12+0-b1504.28-7817840 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 12.4
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 4
Registry: external.system.auto.import.disabled=true
You can install the Beta and other version using the Toolbox App. In the Toolbox click three-dots menu -> Other Versions.
The option seems to be missing from Dolphin as well.
For installing Android Studio itself you can use the Toolbox App as suggested by #viachaslau-tysianchuk.
For installing SDK components from canary / dev / beta channels you can use the command line sdkmanager by specifying the --channel flag, like so:
./cmdline-tools/latest/bin/sdkmanager --channel=1 "extras;google;auto"
Note that the cmdline-tools are not installed by default, you should first install them via the old SDK tools or just download from here: https://developer.android.com/studio#cmdline-tools
You can no longer switch channels from within Android Studio as of Chipmunk or Dolphin, instead you need to install the correct preview installer(beta/canary) from https://developer.android.com/studio/preview

ndk , cmake , and alot of other features aren't showing in my sdk manager and i dont know how to instal them to android studio

ndk , cmake , and alot of other features aren't showing in my sdk manager and i dont know how to instal them to android studio
i tried several solutions including changing proxy settings , changing local time and date of my pc , trying diffrent pc , i updated android studio and even i tried vpn
still most features is not showing at all
here is a picture of my sdk manager
i searched for weeks but still got no working solutions
my android studio details :
Android Studio Bumblebee | 2021.1.1 Patch 2
Build #AI-211.7628.21.2111.8193401, built on February 17, 2022
Runtime version: 11.0.11+9-b60-7590822 amd64
VM: OpenJDK 64-Bit Server VM by Oracle Corporation
Windows 10 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 1280M
Cores: 8
Registry: external.system.auto.import.disabled=true
Non-Bundled Plugins: artsiomch.cmake (213.1.6), org.jetbrains.kotlin (211-1.6.10-release-923-AS7442.40)
thanks
Finally after several trials , i simply removed everything and even resets my laptop .. then everything is working fine now after reinstalling java se and android studio

Android Studio regularly stops supporting code highlighting and Hot Key support

I have recently upgraded Android Studio to this version
Android Studio Arctic Fox | 2020.3.1 Patch 3
Build #AI-203.7717.56.2031.7784292, built on October 1, 2021
Runtime version: 11.0.10+0-b96-7281165 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 10.15.7
GC: G1 Young Generation, G1 Old Generation
Memory: 8192M
Cores: 12
Registry: external.system.auto.import.disabled=true
Non-Bundled Plugins: org.jetbrains.kotlin
Since this upgrade, Android Studio constantly stops working correctly...
In as much as it stops code highlighting, code suggestions, compile errors, pretty much everything that makes it a useful IDE stops working.
The only actions I can take to repair this useless state is to either Close and reopen Android Studio or Invalidate Cache and restart Android Studio.
Is there any configuration settings I ned to change/set?
Is there anything I can do to resolve these issues?
This unexpected/unwanted behaviour is having an adverse effect on my teams productivity
Try to increase heap size.
Go to Preferences (Mac Os)/File (Windows) -> Appearence & Behaviour -> Memory Setting.
Check if multiDex is enabled in Gradle
android {
.....
defaultConfig {
............
multiDexEnabled true
}
}
This helped me when I got stuck with the same problem using Android Arctic Fox: I installed Android Bumblebee preview beta and problem disappeared.

Android Studio no longer shows build directory in project pane's project tree

Android Studio used to show my build directories as orange directories in the project tab when displaying as "Project" (as opposed to the "Android" view). Now the only way I can verify if the build succeeded is to open a file browser or a terminal. How can I unhide the build directory and display all items in my directory via the Project pane? i.e. I don't want Android Studio filtering/hiding anything. I want to see everything in the directory.
OS: Ubuntu 20.4
Android Studio:
Android Studio Arctic Fox | 2020.3.1
Build #AI-203.7717.56.2031.7583922, built on July 27, 2021
Runtime version: 11.0.10+0-b96-7249189 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Linux 5.4.0-80-generic
GC: G1 Young Generation, G1 Old Generation
Memory: 1280M
Cores: 8
Registry: external.system.auto.import.disabled=true
Non-Bundled Plugins: com.thoughtworks.gauge, org.intellij.plugins.markdown
Current Desktop: ubuntu:GNOME
Click on the settings icon on the project tab and make sure "Show Excluded Files" is checked.

Android Studio 4.0 new UI

I've recently updated to Android Studio 4. There are some things I noticed that changed from the previous version. Does everyone have these changes or is there a way to go back to the old UI?
For example the "Select Icon" menu now looks like that:
Select Icon UI
It used to be way more organized.
Another example would be the "New Java Class" UI
New Java Class
I used to be able to extend classes directly while creating a new class.
Did you also get these changes?
Android Studio 4.0.1
Build #AI-193.6911.18.40.6626763, built on June 25, 2020
Runtime version: 1.8.0_242-release-1644-b01 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0
GC: ParNew, ConcurrentMarkSweep
Memory: 1237M
Cores: 12
Registry: ide.new.welcome.screen.force=true
Non-Bundled Plugins: com.google.services.firebase
In Android Studio 4.0.1 everyone has these changes in the UI
If you want to back to the old UI you can download a version older than 4.0.1 for example 3.6 from Android Studio Download Archive
https://developer.android.com/studio/archive
and you can install it without redownloading SDK
but in my opinion, you should use the latest version because you may need to use MotionLayout any other feature in the future version

Categories

Resources