Existing OnsenUI working on Visual Studio - android

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

Related

Android studio starting screen different the it should be

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.

This project contains resources that were not compiled successfully VS2017 Xamarin

I just got started with XAMARIN today.I have Visual Studio 2017 Community Edition v15.7.6.I downloaded XAMARIN from Visual Studio Installer :
I started VS,navigated to Tools>Options>Xamarin>Android Settings and made sure that JDK,Android SDK and NDK locations are correct.But whenever i create a new project(Template is : Android App(Xamarin)) and i open(or navigate to) Resources>Layout>activity_main.axml , the designer shows an error at the bottom saying :
The project contains resources that might not be affected,rendering might be affected
I have no clue why this is happening even after everything was installed properly.If i make any changes to the .axml file, the UI is not updated and when i try to debug the app(through emulator), all i get is a blank emulator screen.
I am totally new to Xamarin so please help me out by guiding me or pointing out where/what i missed ?

I can't find Main.axml in any Android Template, nor can I open other axml files

Edit: I also forgot to mention that I tried running Visual Studio as administrator with all the templates up and I still got the same results
Edit2: I figured out that in another place I found the native cross-platform app that has an Main.axml for android
Other -> Blank Cross-Platform Mobile App (Native) -> In Layout: Mainaxml
but I can't open it (same problem from before) so I guess I'm missing the Android Designer, any way how to fix that? I can't find anything on google
Original:
First of all, I want to say that I spend 2 days searching the internet and I couldn't find any solutions, I really tried everything, and I have had many many problems with xamarin, here is what I have and what I tried
I'm using windows 7
I have visual studio 2017 enterprise
I downloaded xamarin through the visual studio installed
I am using google api 27, (and I have installed 27, 22, and 21)
I used haxm (as I have intel processor and windows 7 (so no hyper v for the emulator))
I don't have Android Emulator Manager, but I have Android Device Manager (which appears to be the same thing but I really tried fixing that and couldn't find any info anywhere)
When I want to start an app, I have to start the emulator manually, and then press "start without debugging" because I don't have the drop down for "debug target"
I tried using "open with" on the axml files to find "android designer" and I couldn't find it, I tried searching google a lot and still couldn't find anything
I verified that I have installed everything correctly
In the bottom are links I followed
Here is what I find when I open any of the following templates
Android -> Android App (Xamarin) -> Blank App -> In Layout: activity_main.axml
Android -> Android App (Xamarin) -> Single View App -> In Layout: activity_main.axml, content_main.axml
Android -> Android XAML App (Xamarin.Forms) -> In Layout: Tabbar.axml, Toolbar.axml
Cross-Platform -> Mobile App (Xamarin.Forms) -> Blank App (with all Platforms selected (Android, iOS, Windows (UWP)) and Code Sharing Strategy : .NET Standard) -> In Layout: Tabbar.axml, Toolbar.axml
But none of these axml files can be opened (visual studio freezes and then I have to close it from task manager (I even tried waiting up to an hour, I think in the bottom left it says "item does not support viewing" or something like that))
I would really be very very happy if anyone can help me
links I used:
https://learn.microsoft.com/en-us/xamarin/cross-platform/get-started/installation/windows
https://learn.microsoft.com/en-us/xamarin/android/get-started/installation/windows
https://learn.microsoft.com/en-us/xamarin/android/get-started/installation/android-sdk?ide=vs&tabs=vswin
https://learn.microsoft.com/en-us/xamarin/android/get-started/installation/android-emulator/index
But none of these axml files can be opened --> visual studio freezes and then I have to close it from task manager
This is an issue of Visual Studio 15.7.3, Xamarin team is generating updated builds right now.
For now, here are some workaround:
If you need to open a .axml file in VS 15.7.3, you could change its extension name to .xml then open it.
Or:
Right-click the .axml file then use "open with" --> eg: choose XML Editor
Update:
Xamarin Team has been generated updated builds to resolve this issue and it only works for VS 15.7.3, for detailed information you could refer to:
https://github.com/xamarin/xamarin-android/issues/1777
Fixed:
Visual Studio 15.7.4 has been released and this issue is fixed:
https://learn.microsoft.com/en-us/visualstudio/releasenotes/vs2017-relnotes#15.7.4
https://developercommunity.visualstudio.com/content/problem/266846/axml-file-doesnt-open.html

Working the same Android Studio project from different workstations

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.

Starting Android Learning

Recently i've started android training, and i've got the below 2 issues.
In my desktop i already had eclipse installed, and when trying to import the android plugins, I was getting some error, so what i did was downloaded eclipse+android package from android developers website and I copied it onto my programs files folder where java is installed and when i open it, it is throwing me an error saying the javaw is not found, goinf through the earlier posts on SO website, i've tried the below.
-vm
\adding the java path
But this didn't work for me. so what i did was installed the same package in my laptop(there is no another eclipse on my laptop). and it started working fine.
On my laptop in the eclipse+android package i write a program and when i hit the Android virtual device manager, it asks me to create a AVD, and when i've filled the entire data here, the OK button is still greyed out. Below is the screenshot.
Also i've tried to create by creating from Device definition,even here i'm not getting the ok button hoghlighted and below is its screenshot
please let me know how can i fix the above issues.
Thanks
Firstly you need not wonder for such a mess ..
For IDE purpose .. go to this link .. https://developer.android.com/sdk/installing/studio.html
Android Studio IDE contains all you need .. Just download ..extract and start creating your first Android project.
And now for tutorials to learn .. try these site ..
(1) https://buckysroom.org/videos.php?cat=6 ( Travis ... provide best tutorial in this world )
(2) https://developer.android.com/index.html
Now you are good to go ..
You can see it clearly says: "CPU/ABI: No system images installed for this target"
So either:
Lower your target.
Update your SDK.
Then set a CPU and you can go on in the AVD creation process.
update the sdk, install ARM/intel(x86) for CPU/ABI
Try using Android Studio by IntelliJ ,as it is for more better than eclipse and moreover ADT plugin for Eclipse is no longer in active development.
if you then also get the same error again try this link android Developer and setup java environment.

Categories

Resources