title: Importing Unity project into Android Studio
body: <p>Okay, so I've tried to import my unity project as a single activity in Android Studio.<br>
  I've followed this
  <a href="https://medium.com/@davidbeloosesky/embedded-unity-within-android-app-7061f4f473a" rel="nofollow noreferrer">tutorial</a>
  but I kept getting an error at step 6:<br>
  <em>"Unable to resolve dependency for ‘:app@debug/compileClasspath’: Could not resolve project..."</em></p>
  
  <p>So I turned to another <a href="https://medium.com/@notestomyself/how-to-include-external-aar-file-using-gradle-6604b378e808" rel="nofollow noreferrer">tutorial</a> on a different way to import the aar package to my main project file in android studio.</p>
  
  <p>Now, using both of the tutorials together, I managed to put something together that will compile without an error.</p>
  
  <p>This is my main activity, where I want to start the unity activity on a button click:</p>
  
  <pre><code>public class MainActivity extends AppCompatActivity {
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
  }
  
  public void startUnity(View view){
      Intent intent = new Intent(this.getApplicationContext(), UnityPlayerActivity.class);
      startActivity(intent);
  }
  }
  </code></pre>
  
  <p>The UnityPlayerActivity class is recognized by Android Studio, but when I run the app, I get this exception:<br>
  <em>"Caused by: android.content.ActivityNotFoundException: Unable to find explicit activity class {com.zackguetta.foodiedoodie/com.unity3d.player.UnityPlayerActivity}; have you declared this activity in your AndroidManifest.xml?"</em></p>
  
  <p>How do I fix this? I thought the merge of the manifests would take care of this.</p>
  
  <p>*note: I'm using Android Studio 3.0.1 if it means anything to you (maybe some compatibility issues arise)<br>
  *second note: Yes, I went through the other similar topics, none seemed to have the answer, so please don't mark as a duplicate right away. </p>