I have those three files:
activity_main.xml
MainActivity.java
AndroidManifest.xml
Those belong to a webview app I found on google...
I want to convert those files into an android apk....
I have no ides at all, just my basic laptop (doesnt support android studio) with internet conection. How can I make that work?
First you need to install Google's Android Studio. Go to
https://developer.android.com/studio
and then follow the installation instructions. Do not be surprised if this takes some time! Android Studio is BIG when you have installed the necessary SDKs and perhaps an emulator. Android Studio includes a lot of useful help.
From command line is posible with
gradlew assembleDebug
https://developer.android.com/studio/build/building-cmdline
Related
I downloaded an app from GitHub but it does not include an APK file. I am using an Android device and I do not have access to Android Studio. How would I used aide or something else to build the app? (GitHub page: https://github.com/mumumusuc/joycon-toolkit)
You have apk files in the Release bundles: https://github.com/mumumusuc/joycon-toolkit/releases (click on assets to expand).
As far as I know, it is not possible. Because there is no other way to compile the code of Android Studio to make it runnable. And the link which you have shared is not an Android Studio Code it is Flutter Code. Which requires a different environment than Android Studio.
If you really need that software create an issue on Github and ask developer for the link.
Clone the repository, open it in VScode, in terminal type flutter build apk ( if you have PC or laptop ) otherwise on phone i dont think its doable.
I'm quite new to NativeScript. Currently, one of my projects is using NativeScript to develop cross-platform app. It has a 3rd-party lib which is written in java. But the result is not as good as I expected. I was struggling to find the problem since the console didn't log valuable info regarding to native code.
Instead, I import the project to Android Studio which is under the folder of platform/android. But it logs error when I hit the "run" button.
I want to know:
Is it possible to debug native code directly with VS Code. At least print out java native error or cat log.
How can I debug native code in Android Studio? How to solve the problem I ran into?
I'd be very appreciated, if anyone can answer my questions. Thanks!
Let me start off by saying there's no official integration with Android Studio. All I can provide is a workaround that will make it possible.
Note: The steps provided below are tested with NativeScript CLI 3.1.1 and will probably work also with 3.2.0.
The first problem is you don't have "node" set in your global path so first of all, you need to add it to PATH. Node required for NativeScript to run. You can look at how to set it up here
If you want to be able to run the project with Android Studio you can follow these steps:
After you've done that you need to change the <app_name>/platforms/android/build.gradle file as described here
The above change will enable you to open <app_name>/platforms/android in Android Studio
Run <app_name>:clean task from gradle
Run the task default for Android Studio, that will prompt you for emulator or device on which to run:
Im curious to know the what steps/tools need to build an android app from source code to apk inside android (i.e. inside an android powered smartphone).
Im actually curious how AIDE works. They give a whole integrated development environment as an android app. Without any root privilege, it compiles==>builds==>generates apk==>deploys/installs apk to host machine (i.e the smartphone).
Im guessing I need ANT/Gradle , keytool , jarsigner(to sign apk).
But:
What tools?
In what sequence?
How? :)
I dont know is it a good place to ask? If not, any suggestion of stackexchange network or any blog will be appriciated.
You don't need any extra tools, if you have AIDE installed...
Just wrap up your Android project code, hit the 'Build' button & it Compiles everything to a working Android App (.apk) :)
All you need is just AIDE .
IT HAS ALL REQUIRED TOOLS LIKE GRADLE, AAPT, SIGNER ETC
Just chill and start using AIDE, if you have problem with free version, try Pro. Am using Pro without any problem since 3 years
I've been using eclipse to develop Android apps with phonegap until, a few weeks ago, I decided to try Sublime Text 2. I found it to be so much better than the eclipse editor so I would like to keep using it. Only thing I'm missing is a quick way to test the app on the device inside Sublime.
Luckily, someone else also had the same idea and developed a plugin for this:
https://github.com/Korcholis/Andrew
Sadly, I cannot get it to work, I installed ant and pointed the plugin to adb but then nothing happens when I try to create a new project (and there is no error message in the console).
I also found this other plugin:
https://bitbucket.org/ucomesdag/sublime-android
But I have no idea on how to install and run it.
Did someone else found a way to do this?
A quick update into 2014.
As of PhoneGap Cordova 3.0, it is no longer required to develop Android apps via eclipse. You are free to use any code editor or IDE you wish as app building is done independently from eclipse via a simple command line.
cordova run android to package the .apk and install on any active devices detected by adb or
cordova build android to package the .apk only.
In your case, you can keep using Sublime and pop in the cordova run android command whenever you ready to go on a test run.
While I agree with Insane Coder that you should stick with supported IDEs to develop for Android, according to this link and existing Sublime Text 2 Ant support, you could build and develop your android project with this IDE (It will just take some time to set it all up... as opposed to using a supported IDE like IntelliJ or Eclipse).
Using PackageControl, look for "Ant". That will install syntax highlighting for Ant. Another plugin that enables the build command (ctrl+b) to work for Ant files, "Super Ant". You should be able to code for android in sublime text 2 with those installed.
On another note... Do you use windows? The Andrew project you link to, seems to have Windows compatibility issues. Apparently related to locating the "SDK" (he says sdk in Andrew's github page but, probably he means JDK?) in your hard drive. Which is probably a hassle because Windows typically installs stuff to "Program Files" and in code, that turns into "Progra~1" because of the space. In the link I give you there is another approach to it, so when you install the JDK set a folder that has no spaces in its name, like c:\java\jdk1.6.0_02 or something else that strikes your fancy. The problem you could be having with Andrew is that it isn't finding the jdk in your hard disk.
I have one main application and an Android library project that it
uses
I can compile and run the application fine in eclipse
when I try to build the same app using ant I am facing issues
I am not able to get the same result with aapt that eclipse does(in
the background)
eclipse plugin seem to merge the resources together (layouts, icons,
strings, etc) for both the main app and the library project.
Anyone knows how to do this in command line in aapt
Thanks
Check the documentation: http://developer.android.com/tools/building/building-cmdline.html
It has everything about building without Eclipse.
You can compile your applicaiton without eclipse using this way. Its a perfect idea. Also refer this blog.