IFLYTEK Speech Recognition Demo created

1. Download the official SDK

https://www.xfyun.cn/sdk/dispatcher

2. Open AS, select import project

 

3. Import mscV5PlusDemo

 4. solve ERROR: Plugin with id 'com.android.application' not found problems.

 

Add the following code ①build.gradle

{buildscript
    Repositories {
// mavenCentral () // or
         jcenter ()
        Google ()

    }
    Dependencies {
        CLASSPATH  'com.android.tools.build:gradle:3.4.2'    // Last Version Jul-2017
     }
}
The latest version gradle 5.1.1 and the corresponding plug-in version is 3.4.2, the version here to fill in the plug-in version

 

 

 ② It should be compilesdk, buildtools, as well as other versions supportv4 integrated development environment into the corresponding version

 

 And supportv4, do not use the dynamic version dependencies

compile 'com.android.support:support-v4:23.+' 
to

compile 'com.android.support:support-v4:28.0.0'

 

5. Modify Bug

sync bit, step by step in accordance with AS prompted to do so

关于安卓最小版本的问题:新版的andorid studio 不能在安卓配置文件中标志最小版本了,这里只需要按提示删掉就可以。

 

 

 

 

 

 

 

 compile也可改为implement

 

6.在手机上运行即可

         

 

 over!

 

Guess you like

Origin www.cnblogs.com/jason5689/p/11484579.html