iOS simulator not found in KMM project - android

I'm trying to build a KMM project using Android Studio. I can see two separate configurations as well, each for AndroidApp and iOSApp. But the iOSApp configuration doesn't have an Execution target. Neither does it show any simulators in the dropdown.
I do have Xcode installed and have run other iOS apps successfully in the iPhone Simulator.
p.s. I'm on M1 mac

once you run the project you'll see a iosApp.xcodeproj file being generated .. make sure your android studio pane is in project mode.
Once a successful build is done you'll be able to open this .xcodeproj file from within xcode
I have not been able to do that as well. If there is a build failure the reason is it is not finding the common folder. To do that open the terminal and run gradlew tasks.There
should be a task allowing you to ready the shared folder with xcode

First select the device in which device you want to use in simulator then find build option and then click on it, your simulator automatically will popup on the screen

Related

Cannot create APK file using Marmalade

I'm using VS2012 and I'm trying to build my application for Android, but APK file is not created when I build the application.
I'm doing this process using the Marmalade Hub and the "Package, Install and Run" option. Build process works fine and I get no errores, but when I process on the "Package, Install and Run" button I get the following message:
Please Build before deploying. To build, click "Build" or click "Open in IDE" and build GCC ARM Debug.
The following picture shows this process:
Picture
Please help, I cannot advance on my project because of this situation!
Thanks!
You're doing it wrong. The build process has to be in the IDE, not in the HUB. Open the project in IDE(VS2012 in your case) by either clicking Open in IDE button in Hub or double clicking the Mkb file. Build and run your code in x86 first to create the necessary bin files for groups and then build it using GCC release compiler. After that you can either run it using GCC compiler to open the deploy tool(default action for VS2010 and VS2012 desktop version) or running deploy tool from external tools (VS2012 for windows phone) or by running the deploy tool target (in XCode) directly. You can instead use package, install and run button in the hub if you've already filled the neccessary info deploy tool asked you.
Honestly I don't have trust on Hub and like to do the development using old school method with IDE and deploy tool. It always works.
I found the problem on the HUB that wasn't allowing me to run the "Package, Install and Run" process. For that matter, the actual problem was in the Package part of the process.
For some reason, when you use VS2012 to develop and you haven't installed Windows Phone for VS2012, the default option for the HUB is to check for "Windows Phone 8 C++ Development" tool installation and if not present, block Package build for Android. I also note that I'm using Windows 7, so I cannot install Windows Phone for 2012 module.
The solution I found was to simply configure Marmalade Hub correctly:
Open Marmalade Hub.
Press on Dependency Checker.
Depency Checker should start with the IDE's and Compilers tab opened. If not, open IDE's and Compilers tab.
Look for Windows Phone 8 C++ Development on the tab.
Choose "Work Without IDE" on the options.
Try to build the project again.
Best!

Launch custom Gradle Android build in Android Studio

Is there an easy way to build, install, and auto-launch a custom Gradle build in Android Studio?
When I press the "Play" (Run) button in Android Studio (with a typical Android project configuration), my project builds, installs it on the proper device, and then launches the app.
How can I do this with specific Build/Product flavors (using Gradle)? I've gotten as far as creating a Gradle configuration that runs the task "installFlavor1." This installs correctly, but it doesn't auto-launch the app.
You can always select a different buildVariant from the buildVariant window on Android Studio. And then if you press the run/play button you should be able to install and run the app on your device/emulator.
And also for me running gradlew install** on the terminal does not launch the app.
If that's something you are looking for then take a look at build.gradle and buildhelper.gradle here

First step in cordova

I started with cordova and I have some small problems.
I've created an android application. I have installed java, android SDK , Apache Ant and Apache Ant.
I have added android with cordova add platforms android and builded correctly.
1 - When I use cordova run android I get the following error:
an error occured while running the android project . Buildfile : ...Demo \ platforms \ android \ build.xml . ERROR : Failed to install apk to device
I think this is due to the fact that my application is not in debug mode. How to set the debug mode? (' cordova emulate android ' works and launches the emulator )
2 - When I want to load a project in eclipse . (New project - > Android Project from Existing Code) I have the error:
Invalid project description Reason : . Invalid project description
How to overcome this error ?
3 - I want to install external plugins, eg
- https://github.com/ClickInnovate/CordovaPhoneGapPlugins/tree/master/Android/SocialMessage
- https://github.com/phonegap/phonegap-plugins/tree/master/Android/StatusBarNotification
It is said that to copy the java files in the src folder , but, I copy the java files in the original project or one that is build ( in plateform directorie )
If you run cordova run android -d, you will see additional debugging information printed to the console which should hopefully help you narrow down the problem. I've never seen that error you are getting, but to set your device up for debugging you should follow these steps. Some steps may be different or unneeded based on your Android device and version:
Settings --> Click on "About Tablet" --> Click on Build Number 7 times to activate "Developer mode"
Settings --> Developer options --> USB Debugging (make sure it is checked)
Settings -->Security-->Unknown Sources` (make sure it is checked)
Storage --> Click the drop down on the top right --> USB computer connection --> Make sure "Camera (PTP)" is checked
Please ensure that you are following the Android platform guide. If you are getting "Invalid project description" you might just need to type in a project description in one of the boxes in Eclipse? Another thing, make sure you are doing Import-->Android-->Android Project from Existing Code. Finally, it sounds like this might be a goofy Eclipse environment issue, here is another question on SO about this problem.
The plugins that you listed are old, they were made before Cordova 3.X came out. In 3.X, a new plugin management system using Cordova CLI and Plugman is used to install plugins - the only problem is that the plugins need to be updated to use this new format. You could look around to see if somebody has updated those plugins (look on the Fork page on GitHub is one good way.) Otherwise if you can't find an updated plugin, you could try to update the plugin yourself following the upgrade guides on the doc website. To answer your question, the java files would be need to eventually be copied into the build folder. In 3.X, the files are stored in the /plugins/ folder, then copied to the /platforms/android/ folder when you run cordova prepare, and are built into the cordova.jar when you do cordova compile. You can also read about how to install plugins with just plugman.

Deploying Phonegap / Cordova app for Android?

I've got a Phonegap/Cordova 3.0 app that I am testing on Android.
Since version 2.x, Cordova relies heavily on the command-line terminal. I've done all the setup stuff and I can build the app. But two things are troubling me.
First of all, an Android project has two www folders. One is [myproject]/www. The other is [myproject]/platforms/android/assets/www. I'm not sure which of these folders to edit when I am fixing bugs.
If I am correct, the first one is where you place your app files before using the command-line "cordova build" to create the app. The second one should then be only a copy that's used after building, before deploying.
Now my question is, when I make a change to my app and I want to test on device, do I have to use the command line to (re)build the app every time?
[myproject]/www is the directory in which you should put your source files. When you build your app these files are copied in to [myproject]/platforms/[platform]/assets/www. In addition to this, files in [myproject]/platforms/[platform] are also copied to [myproject]/platforms/[platform]/assets/www, which allows you to create per-platform overrides to your files.
Note that you should never edit files in [myproject]/platforms/[platform]/assets/www directly, as they will be deleted next time you build your project.
To run your project on your device use cordova run [platform], or to run it on an emulator use cordova emulate [platform].
I found a solution: in command-line terminal, type cordova run android and the app will be built, deployed and run on device.
Hi First thing : Edit www folder inside the asset folder.
Second : no need of command line build , you can take build via eclipse its very easy, Right click on project root folder --> Run As -> Android Application

How to debug / step through an android application without using eclipse

Lately i've had issues with ADT14/15 and their eclipse integration for debugging/building/cleaning android apps. However using ant and a build.xml file is working flawlessly.
Does anyone have a suggestion for how i might control the eclipse debugger from ant? Ideally i'd like to add a custom ant task that i can launch from within eclipse (ant build) that would initiate a debug session between eclipse and adb so i can step through the code using eclipse without relying on adt.
I've found that even though ADT 14/15/16 are unable to build and debug my project because of various errors like.. unable to find blah.apk etc. If you use ant to build just make sure you build a debug version and install it to your phone. Then run DDMS from within eclipse. Select your process and click the green bug icon. This will enable debugging and allow step thru of your code in eclipse.

Categories

Resources