Just started learning android so i checked some online curses on how to set up my android studio project. The program version is up to date but i am getting a different new project screen the people do on videos. So i don't get to write the company domain, choose for what platform or pick the activity module. Tried to reinstall it but nothing changes. Not sure if i should/can continue the tutorials without that. Probably is just a simple mistake somewhere buti cant seem to find it.
1. picture of what android studio shows me
2. picture of what android studio shows me
3. picture of what android studio shows me
Android projects are built by Gradle build system nowadays. So you should select Gradle from the left menu and then slect the make the rest of your project configuration as you wish.
Related
I would like to contact you with the problem that I switched from Delphi version 10.4 to Alexandria (11.2).
From then on, my Android applications compile and build without error, but after the splash screen they do not start on Android devices, regardless of the Android version. Not even on those that ran without errors before.
I did not change the source code, only the development tool was updated.
Looking around the Internet, others are also complaining about this phenomenon, but I can't find a solution anywhere.
My respectful request would be that if you can suggest some kind of solution, please let me know, because this is why I am standing still and it would be good to move forward.
Thank you in advance for your answers.
Android system libraries have been reset to default.
There are a lot of possibilities. Here are a few steps you can use to troubleshoot this sort of failure.
Always back up your project first. Preferably using source control!
Revert Deployment
In the release notes for 11 Alexandria there is section about updates to the Android Manifest
An older Android Project Might Fail at Run Time or When Debugging
Building an older Android project in the IDE can cause the app to fail
at run time and debug time, with a Java "Class not found error". To
correct the issue, do the following:
Select Project > Deployment.
In the Deployment Manager, click the Revert To Default speed button.
It is the 7th button that looks kind of like "undo". Make sure you select the Android platform.
Test a New Project
Create a new simple project from scratch and see if it will run. Try both Android 32-bit and 64-bit. If it doesn't then there may be something wrong in your SDK Manager (Tools -> Options -> Deployment -> SDK Manager).
Look under Android on all three tabs: SDK, NDK, Java; for any warning symbols. You might need to correct a path or install Android support.
Compare AndroidManifest.template.xml
Take the AndroidManifest.template.xml from the new project you created, and compare it to the one in your project from a previous version. If you haven't modified it then you can just copy the new one over the old one.
Revert Android Libraries
Expand out the Project Manager and the Android platforms to Libraries. Right click and choose Revert System Files to Default.
More Debugging
You can use ADB LOGCAT to see the error on failure. This is super useful. There are GUI wrappers for it, like DeviceLens by Dave Nottage of DelphiWorlds.
Check the code in your form constructor. An exception here can cause a crash like you are describing.
Reboot your phone. I hate how often this fixes things for me. It should be the first thing, but it is usually the last.
I've really searched and could't find a solution for the problem, so i'm using eclipse, if i try to create a new android application project and choose full screen activity it tells me that the template depends on android support library which is either not installed or old, when i click the install/update button to solve the issue it says android support jar (android-support-v4.jar) not found, i've seen videos about modifying the build path... but i can't even create the project to change its build path, any ideas about how to solve the issue?!!
I already done a OnsenUI project using notepad++ but i dont know how to compile into an android apk, after some research i found that i can use OnsenUI with Visual Studio. So i downloaded all extensions and components for getting start with OnsenUI in VS but now i need to know how to import my project in VS and compile into my new android app.
Already Added Existing Item but when i go test only open firefox and i cant compile it..
Any solutions?
Question2: When i start a new OnsenUI project BLANK and hit RUN/TEST button, im getting few errors, and all my extensions folders are set correctly.. Its because i cant run a BLANK project with doing nothing?
Thanks, sorry for my bad english
#edit
IMAGE: errors when try to build blank onsenui
Use Monaca CLI.
You can develop with Visual Studio Code (which is free, and separate from Visual Studio 2015)
You debug by running the Monaca Preview command (outside Visual Studio) and then every change is shown in the browser. (Best to use Chrome). Click on F12 for debugging. (You can set the chrome debugger to show as if its a phone and choose different layouts (for iphone or android). Your onsenUI will show correctly for each chosen phone.
To make an APK follow the monaca instructions. (You'll need a developer account on android and on IOS). See here: https://community.onsen.io/topic/557/build-apk-using-monaca-cli-or-cordova-cli
In android studio, I had a project that was working in first place but then I created multiple copy of it in other paths to add changes to these copies instead of the original.
Afterwards, I noticed that the emulator shows up but doesn't launch the app I am trying to run. I followed a tutorial on YouTube that opens the setting app on the emulator and clears launcher data. then nothing changed.. I noticed that no matter how many changes I am adding to the file, nothing changes in the old app icon existing on the emulator.
Things got much worse later when I noticed that there is no modules or any other folders in the project structure except the SDK and when the older project versions were found to have same problem suddenly.
Even when I create a new project that is empty, same thing happens and the app crashes once it's installed.
Android app icon button before run appears in the project with a red cross over it.
Both the emulator and the mobile device don't get the latest version of the app I am trying to install.
I tried to make project, build, run, clean project, sync with gradle file, invalidate cache & restart. However, none of these solutions seem to work.
No idea what is going on.. things seem to be messed up and all online sources seem to be less useless to me.
Note: I am using Android studio V 1.1.0
so, I found that the best solution to this problem is to uninstall the current version of Android studio and SDK folder and reinstall it from scratch.. hope that helps
How can I work an Android studio project from work and later at home without having configuration issues, shall I use something like dropbox ?
You will be delighted to know that there wont be any configuration issues at all.
Android Studio Projects ar portable.
You just have to Copy the project from office. Bring it at home. And import it in your Android Studio by clicking Import existing android studio project. 1st time it will show an error message, mentioning that the sdk directory didn't matched. But don't worry, clicking OK button will solve the issue it self.
Just make sure your sdk manager is up to date in both machine of home and office.