2018-10-23 老板本egret2.5.6打包apk

egret命令行创建android工程
执行:egret create_app testandroid -f F:\egret\xxx -t F:\egret\egret-android-support-3.0.3
生成文件夹,导入android studio
用android studio打包的话,需要修改:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 19
    buildToolsVersion "28.0.3"

    defaultConfig {
        applicationId "org.egret.java.cqmtandroid"
        minSdkVersion 14
        targetSdkVersion 18
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
        }
    }
}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
//    force 'com.android.support:support-v4:27.1.0'

    compile 'com.android.support:support-v4:19.1.0'
//    compile files('libs/egret.jar')
}

  1. 去除
    
        
        
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
   repositories {
       jcenter()
       google()
   }
   dependencies {
       classpath 'com.android.tools.build:gradle:3.2.1'
   }
}

allprojects {
   repositories {
       jcenter()
       google()
   }
}

你可能感兴趣的:(2018-10-23 老板本egret2.5.6打包apk)