title: How to import existing Java.class Files to Android Studio Project
body: <p>I need to know how I can properly add existing Java.class files to an Android Studio Project. My goal is to use these classes in an Android Project.</p>
  
  <p>The Class Files are already written in Eclipse for another Java Project.</p>
  
  <p>I've already tried <code>File-&gt;New-&gt;New Module-&gt;selecting Java Library-&gt;Finish</code> but that doesn't work properly.</p>
  
  <p>As you probably all know it makes the <code>MyClass</code> Class by default.
  For testing I imported <code>com.example.*</code> in my <code>MainActivity</code> and tried to build an Object of that Class inside the <code>onCreate()</code> Method.</p>
  
  <p>The problem is it can't compile the Project. I got the following Errors:</p>
  
  <pre><code>Error:(7, 1) error: package com.example does not exist
  Error:(16, 9) error: cannot find symbol class MyClass
  Note: C:\Users\...\MainActivity.java uses or overrides a deprecated API.
  Note: Recompile with -Xlint:deprecation for details.
  Error:Execution failed for task ':app:compileDebugJava'.
  &gt; Compilation failed; see the compiler error output for details.
  </code></pre>
  
  <p>Can anybody explain how to import my <code>Java.class</code> files correctly so that I can use them in my project?</p>