yt-watchme icon indicating copy to clipboard operation
yt-watchme copied to clipboard

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

Open sreekanth-krishnan opened this issue 6 years ago • 1 comments

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 avatar Sep 24 '18 17:09 sreekanth-krishnan

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;
}

}

AbdaalRuhaani avatar May 31 '19 11:05 AbdaalRuhaani