I am facing a weird problem in android studio while using flutter. I am working on a complicated flutter project which requires some native code, so, am writing some platform code using flutter platform channel(writing for android), whenever I make changes to the code in the android platform and run the app, the code changes does not reflect on the app unless I restart Android studio. What could possibly go wrong?
You need to reinstall the app as native doesnt support hot reload like flutter
go to File->invalidate Caches/Restart,
then click on open for editing in Android Studio
Related
I am trying to run my app on an android studio emulator, it says that it lunch successfully but it does not work anda small window like the image pops
It might be because of random issue you can wipe the data from the AVD manager and relaunch your application in it. Hope it works fine.
it's happening because of several reasons, try to clean project and Rebuild project! then restart Android studio , sometimes it helps
I am trying to developing a simple app using JAVA for my school project. I am using android studio to develop my application, which I learned android studio in school. But i want to run my app in both android and apple phone. So here is my question, is it possible for my android studio app to run in apple phone, and if not, what should i do so that it can run in both android and apple phone?
You cannot use android apk into iOS.
I suggest you to go with some kind of Hybrid applications, like Flutter(Google's one), ReactNative(Facebook's one). In this you can develop applications and final build can install in both Android and iOS.
If you still need any help Flutter or React Native
You can but it's not that straightforward. You can use Android studio to make a Flutter project and then deploy it to iOS. But you need to learn Dart and Flutter's conceptions and whole developing processes, maybe it's not as easy as you imagined.
Android apk cannot run on ios because of different platforms,the best option is to use cross-platforms tools in mobile application development i recommend flutter
If you want to install Flutter project on iOS Device. You need to Open the default Xcode workspace in your project by running open ios/Runner.xcworkspace in a terminal window from your Flutter project directory in macOS.
I have a problem running my project on Android Studio. I am working on an Android project that has a native Java library inside it. It was running fine all the time. But suddenly when I open Android Studio, I find this error:
There is also an error in the .gradle of the project:
It says that URI is not registered.
When Android Studio is started, I find this message:
It seems that there is something wrong in Java configuration, but I can't find out what is the problem?
It was running fine all the time
Not on Android, it wasn't.
It seems that there is something wrong in Java configuration
No. You are using classes that are not part of the Android SDK.
The java Swing and AWT API are not part of the Android SDK and thus aren't including with it. You must find an Android equivalent image library to use in your app. There are few good ones around just depends on what functionality you need to have available to you in you app. Try searching Picasso and or Volley. Picasso is very popular and well known. it has a lot of feature including networking functionality for loading images from the web. The Volley library isn't an image library but an networking library that contains some predefined classes for loading images over the internet.
So this just happened to me. I'm not 100% on the details of how I got it working again, but its roughly this (on my Mac):
Quit Android Studio
I went to ~/Library/Application%20Support/ and deleted the AndroidStudio3.2 directory
I relaunched Android Studio and I got some warning dialog about plugins not existing.
Chose the button that is something about reinstalling or fixing (or whatever isn't deleting or ignoring)
Another dialog comes up. There are a bunch of plugins that are in red. Deselect all the red ones. Then reselect all those ones that were previously red.
Android Studio asks you something and if you want to restart Android Studio. Pick the thing that includes restarting.
And once Android Studio restarts, chose to rebuild your project, and then it worked.
Good Luck and I hope this works for you too.
With the new Microsoft Visual Studio 2015 (VS15) finally released, it comes with the ability to program not only for Windows, but for Android and iOS devices as well.
I have a couple Android apps, and I maintain them using Android Studio. In my opinion, VS15 IDE is stronger than Android Studio, and I would like to migrate my existing apps, and future projects to VS15.
My question is: can I, somehow, use my existing Java code for my Android apps in Visual Studio, or Visual Studio, as it is right now, only supports C# for Android apps?
All I find is creating Android apps using C# (which is great), but I find nothing about re-using existing Java code for Android, and even better, if Java and C# code can be mixed (to use libraries I have created in Java for my Android projects).
Note that I am not asking about porting the existing Android app/code into a Windows app, yet.
I am using Android Studio (IntelliJ) to program Android apps and am facing a problem with hot code swapping and libgdx.
When I run the desktop application in demo mode everything works fine. If I try to change a bit (e.g. the color of an element) nothing is refreshed in the application. Even if I select Run->Reload changed changes a new gradle build is started (takes very long) and then says couldn't find any changes.
I have imported the same sample application in eclipse. There I can just change something in the code and it is immediately shown in the running app.
Anyone else experiencing this issue? Why is this not possible in IntelliJ?
Unfortunately, hot swap debugging does not appear to work when using the Gradle template.
It is actually possible as specified here, you need to disable the Android Support plugin if you want hot code swap to work with Gradle and libGDX.