I know how to create .apk application with eclipse, but right now I have written it with netbeans and I don't know how to do it.
https://blogs.oracle.com/geertjan/entry/procedure_for_android_development_on
here is said to click right mouse button on my project and choose "Export Signed Android Package" but I don't have such option.
Try phonegap cloud build service, it is very good option, you have to remember to generate your app's config.xml before building online. You can build apk,ipa,oct, etc as you wish.I think you have to install some plugins for build using netbeans.Check for plugin as shown:
Tools-->plugins-->Available plugins
Nativly this is not possible with netbeans. However you can build your project simply my command-line:
phonegap run android
However this depends on your platform and your phonegap version, read on: http://docs.phonegap.com/en/3.2.0/guide_cli_index.md.html#The%20Command-Line%20Interface
Related
I built a "Hello World" app using PhoneGap Desktop, but now when I try to build an APK on build.phonegap.com, it just hangs. The build has been pending for 2 days now. Is there an alternative way to build the APK?
Go to Console/Terminal
cd Project Path
cordova build android
(or)
cordova build ios
Go to project path ->platforms -> ios/android in finder(mac)/file explorer(windows)
It converts android/iOS project and open project in android studio/Xcode and build .apk/.ipa file.
It's a bit clunky, but deleting your app from PhoneGap Build and re-adding adding the app should solve the problem. This solution was found on the Adobe Forums.
I use Cordova 5.0.0 to develop android app and I would like to run the app on real machine.
I tried two ways to generate signed apk but failed,
One is used command line to sign an apk that generated by cordova. by this way, it will cause "parsing error" when install the apk;
The second way I tried is using android studio to generate signed apk. My step is "import non-android studio project" then generate signed apk. By this way, I install successfully but the app can't be open and popup error info "unfortunately, xx has stopped".
There is no problem with the code.
Anyone can give me some suggestion? Thanks.
Cordova 5 uses gradle to compile now, so the old ant.properties no longer works. You can work the same trick by creating a release-signing.properties file in platforms/android and adding the following:
storeFile=<path to="" .keystore="" file="">
storeType=jks
keyAlias=<your key="" alias="">
// optional :
keyPassword=<your-key-password>
storePassword=<your-store-password>
If you used Android Studio, you can try with Intellij IDEA (Android Studio is performed by Intellij Platfrom ) here.
After importing your projet, simple go to :
Build > Generate Signed APK..
You'll need to create a key and then Intellij will create your APK.
If you still have your error "unfortunaly..." connect your device and check Intellij logs.
I created a new cordova project (from the command line, cordova create firstProject com.examplefirstproject FirstProject), then I added the platoform that I need (cordova platform add android) and at this point I read from the Cordova documentation that I need to build the project (cordova build android).
Why we need to build the project?
I tried to emulate the project without building it and it works fine. So, I'm asking why I should run the command to build the project.
The "only difference" from a project where I run the build command is the presence of more folders in firstproject\platforms\android (here is the list of folders and files of the not builded project and here is the list of the builded project).
The build command will recompile the app. There are many situations when this is important to do. Whenever, you make a change to core functionality of the app (not the HTML, JS, CSS etc), you will need to re-build the app for these changes to become apparent. Also, you will find when your project is finished, in order to publish the app you will have to build a release version of the app.
You don't need to build the app when you are merely editing the content of your app, which is what is causing your confusion it would seem.
It's also worth noting that when you use the 'run' command to emulate the app, this will also create a fresh build of the app.
I am new to Phonegap and have succesfully created my first app and compiled first on-line then set up phonegap, android SDK etc locally so I can build and run the app in the emulator using 'phonegap run android' at the command prompt (windows).
For an IDE I installed Eclipse and imported the project. I can now run the project from within Eclipse.
However I am really struggling with the Eclipse build. It's taken days already to solve all the problems and get to this stage but I've reached the point where I can't make progress although it would seem so simple.
The build project option is disabled. It turns on if I add something under 'Builders' under 'Configure Build Path...' but I have no idea what I should be doing here.
I can go back to the CMD prompt and build, refresh in Eclipse and run the modified version but this can't be the right way to do it?
I just need to tell Eclipse to 'phonegap build'. But how?
When you create a project using PhoneGap it creates a Gradle based build which can be opened in Android Studio or IntelliJ IDEA. I recommend using Android Studio for PhoneGap projects.
I'm a new user of PhoneGap. My platform is Windows 7 64 bit. I've followed the instructions on the Cordova site and have Node & PhoneGap installed. I already have Eclipse and the ADT installed from my previous work with developing Android apps with Java.
Following the steps at http://cordova.apache.org/docs/en/2.5.0/guide_getting-started_android_index.md.html I'm half way through step 4. I've successfully created the my skeletal hello world PhoneGap app. How exactly do I make an Eclipse project out of it however? The generated files do not seen to include the standard Eclipse .project file. It is not clear from the instructions which exact "new project" menu option to choose.
Thanks if anyone can help.
After creating cordova project through command line, I'm assuming you have added platform using cordova platform add android
Then to load project into eclipse, do this
Eclipse> file > import >Android >Existing acdroid code ..... > Root
directory (Browse button...... Browse to this folder
[yourcordovaproject-platforms-android] select this android folder)>
Check both your project name & cordovaLib > Finish
I figured it out. I had jumped ahead to the "create Android app." step without having run the "cordova platform add android" step first. I ran the add android step, and that did generate the Eclipse project files I needed.