Integrated speech synthesis details, speech synthesis details
It should be noted that the University of Science and Technology does not provide Gradle dependencies. The Integration Method in the ADT environment is provided. Oh, dog !!! Are you still considering eclipse compatibility? (This is what I think is unfriendly) it is useless to paste the. so file to the libs folder. It does not compile the. so file of Tencent. (However, this is not mentioned in the official documentation !!!)
Therefore, you also need to configure the gradle file (which is configured in android ):
task nativeLibsToJar(type: Zip, description: "create a jar archive of the native libs") { destinationDir file("$projectDir/libs") baseName "Native_Libs2" extension "jar" from fileTree(dir: "libs", include: "**/*.so") into "lib" } tasks.withType(JavaCompile) { compileTask -> compileTask.dependsOn(nativeLibsToJar) }
The complete gradle is shown below:
Apply plugin: 'com. android. application 'apply plugin: 'tlin-android' apply plugin: 'tlin-android-extension' android {compileSdkVersion 26 buildToolsVersion '25. 0.0 'sourcesets {main {jniLibs. srcDirs = ['libs']} defaultConfig {applicationId "com. shtoone. hat "minSdkVersion 19 targetSdkVersion 22 versionCode 1 versionName" 1.0 "multiDexEnabled true} signingConfigs {signing {keyAlias '***** 'keypassword' ******* 'storepassword '*** * *** '} buildTypes {release {minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt '), 'proguard-rules. pro'} repositories {flatDir {dirs 'libs'}/* start */task nativeLibsToJar (type: Zip, description: "create a jar archive of the native libs ") {destinationDir file ("$ projectDir/libs") baseName "Native_Libs2" extension "jar" from fileTree (dir: "libs", include :"**/*. so ") into" lib "} tasks. withType (JavaCompile) {compileTask-> compileTask. dependsOn (nativeLibsToJar)}/* end */} dependencies {compile fileTree (dir: 'libs', include :['*. jar ']) compile "org. jetbrains. kotlin: kotlin-stdlib-jre7: $ kotlin_version "compile 'com. android. support: appcompat-v7: 26. + 'compile 'io. reactivex. rxjava2: rxandroid: 2.0.1 'compute' com. squareup. using fit2: Using Fit: 2.3.0 'compile 'com. squareup. except fit2: converter-gson: 2.3.0 'compile 'com. squareup. invalid fit2: adapter-rxjava2: 2.3.0 'compile 'com. trello. rxlifecycle2: rxlifecycle-kotlin: 2.2.1 'compile 'io. reactivex. rxjava2: rxkotlin: 2.1.0 '}Conclusion
It has always been important to hear from the experts about gradle, but it is not important. Because gradle is usually used to add dependencies, and the sdk version is changed. I have never used obfuscation (I have heard of it many times ). Some of the above configurations are also pasted on others' blogs. The specific meanings of these configurations are unknown. It will take time to learn about gradle in the future, so you must use it flexibly.