I need to import Couchbase Lite in one of my proyects. I dont want to use Gradle . So basically what I am doing is :
I have donwloaded the proyect from github
I have imported it like a new module (File->New->Impor module->path)
After compilate the proyect I am facing an error,
Cannot resolve symbol AndroidContext
so I need the class
AndroidContext
That class is here so I am trying to import it like the previuse one, like a module, but I am facing this error.
What I am doing wrong? What I should do for import CouchBase lite to android not using
compile 'com.couchbase.lite:couchbase-lite-android:1.4.0'
There are a number of other dependencies that you might need:
implementation 'com.couchbase.lite:couchbase-lite-android:1.4.4'
// To access the database through HTTP (often used for hybrid development and peer-to-peer sync).
implementation 'com.couchbase.lite:couchbase-lite-java-listener:1.4.4'
// To use ForestDB as the storage type.
compile 'com.couchbase.lite:couchbase-lite-android-forestdb:1.4.4'
// To enable encryption on SQLite databases.
compile 'com.couchbase.lite:couchbase-lite-android-sqlcipher:1.4.4'
// JavaScript view (map/reduce) engine for the REST API.
compile 'com.couchbase.lite:couchbase-lite-java-javascript:1.4.4'
Full documentation of gradle includes is here.
Related
I'm want to implement Twitter login in my app, but I can't import any of the related classes.
In my gradle I added:
implementation 'com.twitter.sdk.android:twitter:3.3.0'
gradle sync works fine, app compiles and run, but I'm not able to import any of the com.twitter classes like TwitterConfig. If I write "Twitter" and let Android Studio suggest me the only option I get are TwitterAuthCredential and TwitterAuthProvider both from com.google.firebase.auth.
What is going on? Am I missing some gradle line?
I managed to solve it importing only the dependecies I needed:
implementation 'com.twitter.sdk.android:twitter-core:3.3.0'
implementation 'com.twitter.sdk.android:tweet-ui:3.3.0'
implementation 'com.twitter.sdk.android:tweet-composer:3.3.0'
implementation 'com.twitter.sdk.android:twitter-mopub:3.3.0'
It migth be related to the large size of the library.
I need to work on microsoft cognitive service FACE API, i have downloaded the code from github, but i am unable to import the code into my android and test it.
Could some one help me in importing the code into my android studio
You need to add this dependency in build.gradle file
dependencies {
...
compile 'com.microsoft.projectoxford:face:1.1.0'
}
block.
I am 'lucky' to have been charged with maintaining a program developed by someone else, and I come across the following problem with an import statement:
import com.fizzbuzz.android.dagger.InjectingDialogFragment;
which Android Studio cannot resolve. I am totally new to dagger...
I have the following in build.gradle dependencies:
compile 'com.fizz-buzz:fb-android-dagger:1.0.1'
compile 'com.fizz-buzz:fb-android-bluetooth:1.0.3'
InjectingDialogFragment is not available in the version you are currently using. Please use compile 'com.fizz-buzz:fb-android-dagger:1.0.3' instead.
For better understating on how Dagger works you can use this blog http://antonioleiva.com/dagger-android-part-2/
I am trying to run the XMPP-based App Server based on Smack library
I'v added the required dependencies based on smack 4.1.0. I have problem with one Import:
import org.jivesoftware.smack.PacketInterceptor;
I experience the error message
Cannot resolves symbol PacketInterceptor
How do I resolve this?
If you are using gradle, use following dependencies
compile "org.igniterealtime.smack:smack-java7:4.0.1"
compile "org.igniterealtime.smack:smack-extensions:4.0.6"
compile "org.igniterealtime.smack:smack-tcp:4.0.6"
Or download the jar for the smack 4.0.6
Apparently, in the latest 4.1.0-Beta version they made some change to API but lack of enough clear documents.
I am trying to use clustering in my application. However on the import statements I get 'the import com.google.maps cannot be resolved (clustering.Cluster).
Also, when using ClusterManager I get 'cannot be resolved to a type'.
The rest of the google play services are working fine.
Are you using Android Studio, or Eclipse? Might need to check your gradle file (Android Studio for example) to see if you have the library/module dependencies lined up. If you are using this library (https://github.com/googlemaps/android-maps-utils) for example, your gradle file should have something like :
dependencies {
compile 'com.google.maps.android:android-maps-utils:0.3+'
}