Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use MTM with Android Studio/Gradle #49

Open
Rieger912 opened this issue Feb 24, 2016 · 3 comments
Open

Use MTM with Android Studio/Gradle #49

Rieger912 opened this issue Feb 24, 2016 · 3 comments

Comments

@Rieger912
Copy link

Hi,

I am trying to integrate MTM in an Android Studio project with gradle.
Can you assist me in integrating it? I added "android.library.reference.1=submodules/MemorizingTrustManager" to gradle.properties (since I don't have a default.properties - is that correct?).
Unfortunately it cannot resolve the name of the activity, when I add it to the AndroidManifest.xml of my app.
Any idea?

Thanks folks!

@vitalyster
Copy link
Contributor

  1. add include submodules:MemorizingTrustManager to settings.gradle
  2. in your build.gradle add into project dependencies:
    compile project('submodules:MemorizingTrustManager')

@dbrgn
Copy link

dbrgn commented Jul 8, 2016

For me that did not work, I had to do it slightly different.

settings.gradle:

include ':MemorizingTrustManager'
project(':MemorizingTrustManager').projectDir = new File('libs/MemorizingTrustManager')

app/build.gradle:

dependencies {
    compile project(':MemorizingTrustManager')
}

@RenHaiRenWjc
Copy link

I follow the above steps to do, the results appeared some problems
Error:Could not get unknown property 'MemorizingTrustManager' for settings 'GoRunning' of type org.gradle.initialization.DefaultSettings.
my local.properties
sdk.dir=F\:\\sofeMuLu\\sdk\\androidsdk_4_5_6 #android.library.reference.1=E\:\\Application0206\\Git\\MemorizingTrustManager-master\\src android.library.reference.1=submodules/MemorizingTrustManager
settings.gradle
include ':app' include submodules:MemorizingTrustManager project(':MemorizingTrustManager').projectDir = new File('libs/MemorizingTrustManager')

build.gradle
dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) testCompile 'junit:junit:4.12' compile 'com.android.support:appcompat-v7:23.2.1' compile 'org.igniterealtime.smack:smack-android-extensions:4.1.4' compile 'org.igniterealtime.smack:smack-tcp:4.1.4' compile project('submodules:MemorizingTrustManager') }

what should I do?

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

No branches or pull requests

4 participants