Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I've never used Android Studio before, so I had to look it up... these are good instructions for adding an external library to an Android Studio project: <a href="https://stackoverflow.com/questions/16588064/how-do-i-add-a-library-project-to-the-android-studio">How do I add a library project to Android Studio?</a></p> <p>Following that with the Dropbox Android Sync SDK, I pasted the contents of <code>libs</code> in the Android SDK into <code>libs</code> in my Android project, and then I added this line to <code>build.gradle</code> (inside <code>dependencies</code>):</p> <pre><code>compile files('libs/dropbox-sync-sdk-android.jar') </code></pre> <p>That seemed to work for me. If you tried that and it didn't work (or if you tried something else), please provide some details.</p> <p><strong>EDIT Pasting my answer from <a href="https://stackoverflow.com/questions/18574283/android-dropboxsync-library">Android &amp; DropboxSync Library</a> for completeness:</strong></p> <p>I found this SO answer helpful: <a href="https://stackoverflow.com/questions/16683775/include-so-library-in-apk-in-android-studio">Include .so library in apk in android studio</a></p> <p>Part of my <code>build.gradle</code> file now looks like this, and my app starts successfully:</p> <pre><code>dependencies { compile fileTree(dir: "$buildDir/native-libs", include: 'native-libs.jar') compile fileTree(dir: 'libs', include: '*.jar') } task nativeLibsToJar( type: Zip, description: 'create a jar archive of the native libs') { destinationDir file("$buildDir/native-libs") baseName 'native-libs' extension 'jar' from fileTree(dir: 'libs', include: '**/*.so') into 'lib/' } tasks.withType(Compile) { compileTask -&gt; compileTask.dependsOn(nativeLibsToJar) } </code></pre>
    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