title: How to use Google Cloud Translation API in Android Studio?
body: <p>I am making an android app for language translation and so far I have used voice recognizer intent to get the voice input into a string. Now I want to translate that string into another language and speak the translated text using the TTS Engine. 
  I have created a separate <code>translate_test</code> file just for test use. I have been researching and know that API Key is required in Android Studio. So I have created the API Key and enabled the <em>Google Cloud Translation API</em>.
  Now I'm trying to import <code>com.google.cloud.translate.Translation</code> in my MainActivity but I'm getting this error: </p>
  
  <p><a href="https://i.stack.imgur.com/vvp4G.jpg" rel="noreferrer">error</a></p>
  
  <p>I NEED 10 REPUTATION POINTS TO ALLOW THE IMAGE TO BE SHOWN.So all I can say is that the imported file does not exist.</p>
  
  <p>I need help on how to include the cloud files. I have been researching online but still not able to find a tutorial or any information on how to include the cloud files in Android Studio. I have even read <a href="https://cloud.google.com/translate/docs" rel="noreferrer">the docs</a>. I need help and will be pleased if someone can give me some simple steps. </p>
  
  <p>This is my MainActivity.java file:</p>
  
  <pre><code>package com.example.aman.translate_test;
  
  import android.support.v7.app.AppCompatActivity;
  import android.os.Bundle;
  import android.widget.TextView;
  
  import com.google.cloud.translate.Translation;
  
  public class MainActivity extends AppCompatActivity
  {
      @Override
      protected void onCreate(Bundle savedInstanceState)
      {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
  
          TextView tv = (TextView) findViewById(R.id.textView);
      }
  }
  </code></pre>
  
  <p>This is my AndroidManifest.xml file:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
  package="com.example.aman.translate_test"&gt;
  
  &lt;application
      android:allowBackup="true"
      android:icon="@mipmap/ic_launcher"
      android:label="@string/app_name"
      android:roundIcon="@mipmap/ic_launcher_round"
      android:supportsRtl="true"
      android:theme="@style/AppTheme"&gt;
  
      &lt;uses-permission android:name="android.permission.INTERNET"/&gt;
      &lt;uses-library android:name="com.google.cloud.translate.Translate" /&gt;
  
      &lt;meta-data
          android:name="com.google.android.geo.API_KEY"
          android:value="@string/api_key"/&gt;
  
      &lt;activity android:name=".MainActivity"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.MAIN" /&gt;
  
              &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
  &lt;/application&gt;
  </code></pre>
  
  <p></p>