Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>In Android Studio, builds are done with Gradle now. Gradle is different. With gradle, you tell your project which jar's you need, and it will connect to a server and download them if it doesn't already have them when you compile your apk.</p> <p>A few things to note: When you install Android Studio, it has it's own Android sdk directory. You have to download everything from the sdk downloader (from inside the Android Studio App) again. Don't bother trying to switch the sdk download path to your current one. You will only encounter bugs (Or at least I did).</p> <p>So your question is worded very confusingly. It sounds like you have a main module, and then you have a library module, and the library module uses the support library.</p> <p>You'll need to set it up so the main module has a dependency on your library module. From there, you'll need to go into your library module's gradle file and tell it that you want to include the android support library</p> <pre><code>dependencies { compile 'com.android.support:appcompat-v7:19.0.0' } </code></pre> <p>The support library is a little weird in gradle. Gradle normally would download the dependencies you need. However, android studio requires that you have the support library installed through their sdk downloader (top-right group of icons in android studio. The download icon).</p> <p>After you get all your dependencies entered into your gradle file, you'll then need to go to Tools -> Android -> Sync gradle files with project. From there compile errors should go away, and you should be able to run the project.</p> <p>Best of luck. By the way, Here is the documentation on Gradle on the android website. I find myself having to go to it A LOT, especially when I made the switch from Eclipse to Android Studio. This + Various tutorials I found as needed via google. <a href="http://tools.android.com/tech-docs/new-build-system/user-guide" rel="nofollow">http://tools.android.com/tech-docs/new-build-system/user-guide</a></p> <p>EDIT: This link might also be helpful. Google has some steps for switching from eclipse to Android Studio: <a href="http://developer.android.com/sdk/installing/migrate.html" rel="nofollow">http://developer.android.com/sdk/installing/migrate.html</a> That with some of the stuff above may prove helpful.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload