the run/debug/device selection in android studio are grayed out - java

for context i'm new to android studio
so basically i wanted to learn flutter, so i installed it and installed android studio as well
but after i configured everything (SDK path and environment variables included) it still won't run any apps and the whole area is grayed out as you can see in the image i linked.
i have tried to make sure that my sdk is correct and that my flutter permessions are all allowed.
i also tried reinstalling the whole thing but nothing happened.
android studio run bar gray and wont work

okay guys i fixed it thank you all for the help
for any future readers, hi from past :D
i went into the plugin sections in the settings and made sure all my installed plugins were up to date
i then installed the flutter plugin and restarted the IDE. Fixed everything.

Related

How to build Android app in release mode? GoogleFit: RESULT_CANCELED

Can anyone tell me how to build my app in release mode? I'm having issues getting to the permissions screen on my android (java) application, I keep getting GoogleFit: RESULT_CANCELED error and then activity closes.
Another user suggested building in release mode, my SDK is generated for release and I have updated my gradle files but nothing is working.
I have asked for help a few times since yesterday with no luck so if anyone can help that would be appreciated!
Link to my other question with problem in detail
I'm assuming you are using Android studio. To build the app in release mode. You will need to find a window called Build Variants which should be at the lower left screen of you workspace. And you will see the modules you created for your APP. And just change Build Variants from debug to release.
Here is the official document link for your reference Build and Run your App.
If you sre using Android Studio then you can go to build > Build Signed Bundle/APK....proceed and at the end Mark "release".
For more details you can search "android studio Generation Signet APK".
But I believe your problems lie deeper than that, I dont think it has anything to do with how you build your APK.

android.bat not opening Android SDK manager

Yes, this question has been asked before. But the solutions on the internet are not working so that's why I am asking it here. I'm guessing the solutions aren't working because I am using newer versions but I'm not sure.
Bit of Background: So I am making a small game in Unity. I have to test it on Android so I can check if there are any problems or not. So I check around the internet on how I may be able to do that. Turns out, I need to change the build settings to android and I also need JDK installed on my computer along with Android SDK Manager so I download them both. I did not install the Android Studio but just the Command Line Tools because many tutorials say that I do not actually need the whole Android Studio because I'm gonna be making the app in Unity not in Android Studio. So I do that. I install JDK and Extract the command line tools.
I think the JDK installed fine because after installing JDK, I opened Internet Explorer (No, I don't use IE, I use Chrome but I opened it just for fun). And a little notification showed up at the bottom which basically said that I could now run Java on the browser so that's why I don't think there are any problems with the JDK installation.
Problem: I extracted Command Line tools of Android Studio and found that there was only a tools/ folder in it. I opened it and clicked on android.bat but the Android SDK manager doesn't work. A CMD screen just flashes for a moment but then nothing happens.
Solution I have Tried:
Change set java_exe to:
set java_exe="C:\Program Files\Java\jre7\bin\java.exe"
and delete the line:
call libjava_find.bat
But I can't find set java_exe code anywhere in the file. The file doesn't have it. How am I supposed to change it?
Alright, so I figured it out but I was still unable to pinpoint the problem. Here is what I did:
Installed a fresh copy of Windows 10. Note: It is highly unlikely that this will solve the problem. But where I live, it is very common to just install a fresh copy of windows whenever you get a problem. I really don't think you need to do this.
Follow all the instructions from: https://www.youtube.com/watch?v=yLFBu-VlBIw
If you get the following error:
Error building Player: CommandInvokationFailure: Unable to list target platforms. Then use this fix: not finding android sdk (Unity)
These steps solved the problem for me and I was able to run it properly.

Eclipse does not work after update through Android SDK Manager

I have just updated my eclipse through Android SDK Manager, my eclipse pop out and error about the Android SDK.
This Android SDK requires Android Developer Toolkit version 23.0.0 or above.
Current version is 22.6.2.v201403212031-1085508
When I pressed the button "Check for Updates", the result from eclipse is "No Updates were found."
I am sure that my Android SDK should be 23.0.0 above.
All my project listed in the left corner of above picture contains errors.
I have studied this thread and I found that the "Java build path" was "Unable to get system liberary for the project"
The project was not built since its build path is incomplete
Whenever I tried to add the JRE System Library, it failed beacause of "Could not write file: C:\Users\Admin\workspace\ICEAPP(20140819_uc).classpath."
Can anyone give me so help?
Update the ADT-Plugin in eclipse (Help > Check for updates)
You have to remove the whole installation and reinstall everything again. This update seems to fail always. But reinstall works for all of this issues. With the new version 23. It seems there is a big compatibillity problem unsolved yet.
Check for updated fails but eclipse say it need one update. Also SDK Manager seems to be up to date.
Anyway, even if you get ot working, there still are problems for example with implementation of google play service.
Had a lot of issues by myself and others to, but reinstall solved it

Emulator not showing the updated output after making the changes in the code

Yesterday i updated eclipse and sdk, and now have made some changes to the code but not able to see the changes made in emulator when i run it.
These are the things i have tried by googling:
restarted eclipse and avd
clean the project
checked whether all the options are checked under project
properties->builders.
Checked whether all the options are checked under
windows->preferences->android->build
When I tried to test it on device, I was not able to export, but got "No Build Tools installed in the sdk".
So I installed the tools in the sdk, but I still could not get updated output.
Can anyone help me out?
Are you sure the latest apk is getting installed on the device? There are some instances where it will not overwrite an installed apk. For example if your build-signing key has changed recently. Try uninstalling the app fully from the device first, and try again.
Go to device manager edit device virtually created by you or system ..you will find one check box saying enable snaps shot. check mark it. it will work..

Android is not appear in panel in windows(preferences)

Hi im new to android development. I cant launch android project i think i missed out something but i cant get where i did mistake in installing. i briefly explain what i did.
1) download Sdk package from http://developer.android.com/sdk/index.html and i run the sdk manager . and installed by checking it. i put android-sdk-windows folder in eclipse.
2) then i followed this link http://developer.android.com/sdk/eclipse-adt.html#installing
3)Then i called ADT plugin zip windows-->preferences -->instal software sites.... i download adt plugin 17.zip
4) but still i cant find android in windows (preference) in left side of panel.
Im sorry if u feel my question is stupid or silly.
You often need to restart Eclipse after adding a new plugin/extension; try that and then see if the Android preferences appear in the preference panel.

Categories