Skip to content
This repository has been archived by the owner on Jul 27, 2022. It is now read-only.

Can someone share an updated clone of this that works right on importing to Android Studio ? #67

Open
sreekanth-krishnan opened this issue Sep 24, 2018 · 1 comment

Comments

@sreekanth-krishnan
Copy link

sreekanth-krishnan commented Sep 24, 2018

I'm stuck at including the native libraries.

I keep getting errors like this and I have no deep understanding about ndk and jni.

Android NDK:     This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES    

Android NDK:     or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the    

Android NDK:     current module

Wondering why anyone can't share a working project source code.

@sreekanth-krishnan sreekanth-krishnan changed the title Can someone share an updated clone of this that works right on importing to Android Studio Can someone share an updated clone of this that works right on importing to Android Studio ? Sep 24, 2018
@AbdaalRuhaani
Copy link

AbdaalRuhaani commented May 31, 2019

Import this project in your android studio and use these gradle files.
hope you will setup.

buildscript {
repositories {
jcenter()
maven { url "https://maven.google.com" }
google()
maven { url 'https://maven.fabric.io/public' }
mavenLocal()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.4.1'

    classpath 'io.fabric.tools:gradle:1.+'

}

}

allprojects {
repositories {
jcenter()
maven {
url "https://maven.google.com"
}
}
}
apply plugin: 'com.android.application'

apply plugin: 'io.fabric'

repositories {
maven { url 'https://maven.fabric.io/public' }
}

android {

compileSdkVersion 28
defaultConfig {
    applicationId "com.google.android.apps.watchme"
    minSdkVersion 16
    targetSdkVersion 28
    versionCode 1
    versionName "1.0"
    sourceSets.main {
        jniLibs.srcDir 'src/main/libs'
        jni.srcDirs = [] //disable automatic ndk-build call
    }
}
buildTypes {



    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        buildConfigField("String", "IMAGE_URL", "\"${MaterialUIKitImage}\"")
        debuggable true
    }
    debug {
        buildConfigField("String", "IMAGE_URL", "\"${MaterialUIKitImage}\"")
        debuggable true
        minifyEnabled false
    }
}
configurations {
    implementation.exclude group: "org.apache.httpcomponents", module: "httpclient"
}

}

dependencies {

implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.google.android.gms:play-services-plus:16.0.0'
implementation 'com.google.android.gms:play-services-auth:16.0.1'
implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.android.support:design:28.0.0'
implementation 'com.google.apis:google-api-services-youtube:v3-rev120-1.19.0'
implementation 'com.google.http-client:google-http-client-android:1.29.1'
implementation 'com.google.api-client:google-api-client-android:1.28.0'
implementation 'com.google.api-client:google-api-client-gson:1.28.0'
implementation 'com.google.android.gms:play-services-auth:16.0.1'
implementation 'com.android.support:multidex:1.0.3'
implementation 'com.mcxiaoke.volley:library:1.0.18'
implementation 'com.google.code.gson:gson:2.3'
implementation 'com.github.bumptech.glide:glide:3.7.0'

implementation 'net.mready.hover:hover:0.3.1'

implementation('com.crashlytics.sdk.android:crashlytics:2.10.0@aar') {
    transitive = true;
}

}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants