The handset is missing CD 3.5.0

Before using phonegap 2.7.0. therefore, to update the phone mail, I installed the phone version 3.5.0 using node.js, but there is no cord file in the phonegap folder. If I create a project in ADT, how can I add cordova.jar and cordova.js? I can not see the jar file in the phonegap folder. Even if I create the project from the command line, I did not see any jar files and js files in my created project.

Can someone help me create and run my first project using phonegap 3.5.0?

+7
android cordova phonegap-plugins
source share
4 answers

I have the same problem ... I tried to create a new project with cordova@3.5.0-0.2.4 :

cordova -d create BarcodeTest it.test.BarcodeTest BarcodeTest cd BarcodeTest cordova platform add android cordova build 

I opened the project with an eclipse, and it was full of mistakes !: - (

I manually fixed the problem, but Cordova-3.5.0.jar is missing !!

  • Right click on the project and go to "Properties"
  • Select "Java Build Path" on the left.
  • Click the Source tab
  • Click "Add Folder ..." and check "gen" and "src"

I solved the problem with the lack of Cordova-3.5.0.jar this way:

  • Download https://www.apache.org/dist/cordova/platforms/cordova-android-3.5.0.zip
  • There are two eclipse projects, CordovaViewTestActivity and Conrdova. Open the Cordova library with eclipse
  • Build and Build in Bin / Cordova.jar
  • Right click on your broken project -> Properties -> Android. In the Library tab, select Add. Select a Cordova project with cordova.jar

But my project is an exception when I run it !!! I think back to the old version of Cordoba.

I found another solution for creating banks from the official documentation http://cordova.apache.org/docs/en/3.5.0/guide_platforms_android_webview.md.html

Go to the Android / framework package directory and run the antbank. It creates a Cordova.jar file, formed as / framework / cordova -3.5.0.jar.

Ok, it works

 C:\LTPReleaseAndroid\cordova-android\framework>android update project -p . Updated local.properties build.xml: Found version-tag: custom. File will not be updated. Added file C:\LTPReleaseAndroid\cordova-android\framework\proguard-project.txt C:\LTPReleaseAndroid\cordova-android\framework>ant jar Buildfile: C:\LTPReleaseAndroid\cordova-android\framework\build.xml -pre-build: -check-env: [checkenv] Android SDK Tools Revision 22.3.0 [checkenv] Installed at C:\Programmi\adt-bundle-windows-x86\sdk -setup: [echo] Project Name: Cordova [gettype] Project Type: Android Library -build-setup: [getbuildtools] Using latest Build Tools: 18.1.0 [echo] Resolving Build Target for Cordova... [gettarget] Project Target: Android 4.4 [gettarget] API level: 19 [echo] ---------- [echo] Creating output directories if needed... [mkdir] Created dir: C:\LTPReleaseAndroid\cordova-android\framework\libs [mkdir] Created dir: C:\LTPReleaseAndroid\cordova-android\framework\bin [mkdir] Created dir: C:\LTPReleaseAndroid\cordova-android\framework\bin\res [mkdir] Created dir: C:\LTPReleaseAndroid\cordova-android\framework\bin\rsOb j [mkdir] Created dir: C:\LTPReleaseAndroid\cordova-android\framework\bin\rsLi bs [mkdir] Created dir: C:\LTPReleaseAndroid\cordova-android\framework\gen [mkdir] Created dir: C:\LTPReleaseAndroid\cordova-android\framework\bin\clas ses [mkdir] Created dir: C:\LTPReleaseAndroid\cordova-android\framework\bin\dexe dLibs [echo] ---------- [echo] Resolving Dependencies for Cordova... [dependency] Library dependencies: [dependency] No Libraries [dependency] [dependency] ------------------ [echo] ---------- [echo] Building Libraries with '${build.target}'... [subant] No sub-builds to iterate on -code-gen: [mergemanifest] Merging AndroidManifest files into one. [mergemanifest] Manifest merger disabled. Using project manifest only. [echo] Handling aidl files... [aidl] No AIDL files to compile. [echo] ---------- [echo] Handling RenderScript files... [echo] ---------- [echo] Handling Resources... [aapt] Generating resource IDs... [echo] ---------- [echo] Handling BuildConfig class... [buildconfig] Generating BuildConfig class. -pre-compile: -compile: [javac] Compiling 90 source files to C:\LTPReleaseAndroid\cordova-android\fr amework\bin\classes [javac] Note: Some input files use or override a deprecated API. [javac] Note: Recompile with -Xlint:deprecation for details. [echo] Creating library output jar file... [jar] Building jar: C:\LTPReleaseAndroid\cordova-android\framework\bin\cla sses.jar jar: [jar] Building jar: C:\LTPReleaseAndroid\cordova-android\framework\cordova -3.5.0.jar BUILD SUCCESSFUL Total time: 4 seconds 
+4
source share

What worked for me

โ€œAs soon as the Eclipse window opens, a red X appears to indicate unresolved issues. If so, follow these additional steps:

Right-click the project directory.

In the Properties dialog box that appears, select Android in the navigation bar.

For the purpose of creating the project, select the highest level of Android API that you have installed.

Click OK.

Select "Clear" in the "Project" menu. This should fix all errors in the project. "Of

http://cordova.apache.org/docs/en/3.5.0/guide_platforms_android_index.md.html#Android%20Platform%20Guide

+3
source share

cordova.js is automatically copied by the cord on the assembly, and cordova.jar is now a reference to the project (CordovaLib).

To configure everything you need, call "cordova build android" (if you already have a project) on the command line. It will copy all the contents from "www" to the platform / android / assets / www folder.

You may need to first run the following from the command line, but not quite confidently:

 android update project --path 

You can take a look at the Android platform guide, which can be found here: http://cordova.apache.org/docs/en/3.5.0/guide_platforms_android_index.md.html#Android%20Platform%20Guide

btw, you can find cordova.js on the / android / platform _www platforms and the source for Cordova lib on the / android / CordovaLib platforms.

0
source share

I moved the src files from C: .. {DownloadFolder} \ cordova-android-3.5.1 \ cordova-android \ framework \ src \ to the src folder in Eclipse and added it to the build path (right-click and select Add to build a path).

0
source share

All Articles