liuyuqi 2 years ago
parent
commit
8bb569ec54

+ 21 - 0
README.md

@@ -0,0 +1,21 @@
+## myApp
+
+通过npm安装:
+
+```
+npm install -g cordova
+```
+
+创建cordova 项目:
+
+```
+cordova create myApp com.myCompany.myApp myApp
+cd myApp
+cordova plugin add cordova-plugin-camera --save
+cordova platform add android --save
+cordova requirements android    
+cordova build android --verbose
+cordova run android
+
+```
+

+ 1 - 1
myApp/platforms/android/CordovaLib/build.gradle

@@ -31,7 +31,7 @@ buildscript {
     dependencies {
         // The gradle plugin and the maven plugin have to be updated after each version of Android
         // studio comes out
-        classpath 'com.android.tools.build:gradle:3.3.0'
+        classpath 'com.android.tools.build:gradle:3.6.1'
         classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
         classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
     }

+ 1 - 1
myApp/platforms/android/app/build.gradle

@@ -27,7 +27,7 @@ buildscript {
     }
 
     dependencies {
-        classpath 'com.android.tools.build:gradle:3.3.0'
+        classpath 'com.android.tools.build:gradle:3.6.1'
     }
 }
 

+ 1 - 1
myApp/platforms/android/build.gradle

@@ -28,7 +28,7 @@ buildscript {
         // NOTE: Do not place your application dependencies here; they belong
         // in the individual module build.gradle files
 
-        classpath 'com.android.tools.build:gradle:3.3.0'
+        classpath 'com.android.tools.build:gradle:3.6.1'
     }
 }