title: Android SDK "no such file" while file exists
body: <p>I just migrated from Windows to Linux Mint. I downloaded the SDK and started using it. AVD manager is working, and I'm even able to start from intellij, but when I asked to launch some device it said me:</p>
  
  <p>Starting emulator for AVD 'Pakon'</p>
  
  <blockquote>
    <p>Failed to start emulator: Cannot run program 
    "/home/marcinm/Programy/sdk/tools/emulator": error=2,  No such file or
    directory</p>
  </blockquote>
  
  <p>While I checked and there is such file in this directory.</p>
  
  <p>Also when I want to compile project the error message is saying to me:</p>
  
  <blockquote>
    <p>Error:android-apt-compiler: Cannot run program 
    "/home/marcinm/Programy/sdk/build-tools/19.1.0/aapt":  error=2, No
    such file or directory</p>
  </blockquote>
  
  <p>While there also is aapt file on this directory.</p>
  
  <p>Anyone has idea how to fix it?</p>
  
  <p>UPDATE:</p>
  
  <p>I found the solution. There must be package provided. I fixed it by changing code to:</p>
  
  <pre><code>    @Test
      fun simpleGenerationTest() {
          val beforeProcess = "com.example.activitystarter.MainActivity" to """
  package com.example.activitystarter;
  
  import android.app.Activity;
  import activitystarter.MakeActivityStarter;
  
  @MakeActivityStarter
  public class MainActivity extends Activity {}
          """
  
          val afterProcess = "com.example.activitystarter.MainActivityStarter" to """
  package com.example.activitystarter;
  
  import android.content.Context;
  import android.content.Intent;
  import android.support.annotation.UiThread;
  
  public class MainActivityStarter {
      @UiThread
      public static void fill(MainActivity activity) {
      }
  
      @UiThread
      public static void start(Context context) {
      Intent intent = new Intent(context, MainActivity.class);
      context.startActivity(intent);
      }
  
      @UiThread
      public static void startWithFlags(Context context, int flags) {
      Intent intent = new Intent(context, MainActivity.class);
      intent.addFlags(flags);
      context.startActivity(intent);
      }
  
      @UiThread
      public static Intent getIntent(Context context) {
      Intent intent = new Intent(context, MainActivity.class);
      return intent;
      }
  }
          """
  
          processingComparator(beforeProcess, afterProcess)
      }
  </code></pre>