Android studio 3.1.3 TextToSpeech

  • Replies:1
  • Answered
Luboss8
  • Forum posts: 18

Jul 22, 2018, 7:40:20 PM via Website

I want to run app from youtube. I always get error. I've tried almost everything. But still it doesn't work. Can you help me, please?

— modified on Jul 24, 2018, 5:02:05 PM

Reply
Best answer
Luboss8
  • Forum posts: 18

Jul 24, 2018, 9:28:52 PM via Website

Hello.
My problem is that android studio 3.1.3 does not support applications that are on the web. My preliminary solution is to use the lower APIs. I changed the build.gradle, see below, and it works so far. For every better solution I will be very grateful.
Sincerely.

apply plugin: 'com.android.application'

android {
compileSdkVersion 25
buildToolsVersion '27.0.3'

defaultConfig {
    applicationId "com.example.***Your user***.texttospeech"
    minSdkVersion 23
    targetSdkVersion 25
    versionCode 1
    versionName "1.0"
    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}

}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
api 'com.android.support:appcompat-v7:25.4.0'
api 'com.android.support.constraint:constraint-layout:1.1.2'
testImplementation 'junit:junit:4.12'

repositories {
    maven { url "https://jitpack.io" }
    maven { url "https://maven.google.com" }
}

}

— modified on Jul 24, 2018, 9:31:50 PM

Helpful?
Reply