{"action":"created","issue":{"url":"https://api.github.com/repos/glob3mobile/g3m/issues/137","labels_url":"https://api.github.com/repos/glob3mobile/g3m/issues/137/labels{/name}","comments_url":"https://api.github.com/repos/glob3mobile/g3m/issues/137/comments","events_url":"https://api.github.com/repos/glob3mobile/g3m/issues/137/events","html_url":"https://github.com/glob3mobile/g3m/issues/137","id":106937399,"number":137,"title":"Migration to Android Studio","user":{"login":"octavianiLocator","id":14217058,"avatar_url":"https://avatars.githubusercontent.com/u/14217058?v=3","gravatar_id":"","url":"https://api.github.com/users/octavianiLocator","html_url":"https://github.com/octavianiLocator","followers_url":"https://api.github.com/users/octavianiLocator/followers","following_url":"https://api.github.com/users/octavianiLocator/following{/other_user}","gists_url":"https://api.github.com/users/octavianiLocator/gists{/gist_id}","starred_url":"https://api.github.com/users/octavianiLocator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/octavianiLocator/subscriptions","organizations_url":"https://api.github.com/users/octavianiLocator/orgs","repos_url":"https://api.github.com/users/octavianiLocator/repos","events_url":"https://api.github.com/users/octavianiLocator/events{/privacy}","received_events_url":"https://api.github.com/users/octavianiLocator/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-09-17T08:45:10Z","updated_at":"2015-09-17T14:46:42Z","closed_at":"2015-09-17T09:28:07Z","body":"Hi and thank you for your work and dedication to this framework!\r\n\r\nSince Support for the Android Developer Tools (ADT) in Eclipse is ending, is it possible to include a tutorial describing how import G3M into an Android Studio project? All my attempts fail when adding the G3MShared as a module in my Android Studio project. \r\n\r\nThank you in advance."},"comment":{"url":"https://api.github.com/repos/glob3mobile/g3m/issues/comments/141110281","html_url":"https://github.com/glob3mobile/g3m/issues/137#issuecomment-141110281","issue_url":"https://api.github.com/repos/glob3mobile/g3m/issues/137","id":141110281,"user":{"login":"akosmaroy","id":333140,"avatar_url":"https://avatars.githubusercontent.com/u/333140?v=3","gravatar_id":"","url":"https://api.github.com/users/akosmaroy","html_url":"https://github.com/akosmaroy","followers_url":"https://api.github.com/users/akosmaroy/followers","following_url":"https://api.github.com/users/akosmaroy/following{/other_user}","gists_url":"https://api.github.com/users/akosmaroy/gists{/gist_id}","starred_url":"https://api.github.com/users/akosmaroy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akosmaroy/subscriptions","organizations_url":"https://api.github.com/users/akosmaroy/orgs","repos_url":"https://api.github.com/users/akosmaroy/repos","events_url":"https://api.github.com/users/akosmaroy/events{/privacy}","received_events_url":"https://api.github.com/users/akosmaroy/received_events","type":"User","site_admin":false},"created_at":"2015-09-17T14:46:42Z","updated_at":"2015-09-17T14:46:42Z","body":"we're using g3m in android studio / gradle. here is the portion of our build.gradle file that makes it work. as you see, we've put g3m into a lib/external/g3m directory (as a git submodule)\r\n\r\n```\r\nproject(':lib:external:g3m:Commons:G3MSharedSDK') {\r\n    apply plugin: 'java'\r\n\r\n    sourceCompatibility = 1.6\r\n    version = '1.0'\r\n\r\n    sourceSets {\r\n        main {\r\n            java {\r\n                srcDir 'src'\r\n            }\r\n        }\r\n    }\r\n}\r\n\r\nproject(':lib:external:g3m:Android:G3MAndroidSDK') {\r\n    apply plugin: 'com.android.library'\r\n\r\n    dependencies {\r\n        compile files('libs/java_websocket.jar')\r\n        compile project(':lib:external:g3m:Commons:G3MSharedSDK')\r\n    }\r\n\t\r\n    android {\r\n        compileSdkVersion 15\r\n        buildToolsVersion \"21.1.2\"\r\n\r\n        sourceSets {\r\n            main {\r\n                manifest.srcFile 'AndroidManifest.xml'\r\n                java.srcDirs = ['src']\r\n                resources.srcDirs = ['src']\r\n                aidl.srcDirs = ['src']\r\n                renderscript.srcDirs = ['src']\r\n                res.srcDirs = ['res']\r\n                assets.srcDirs = ['assets']\r\n            }\r\n        }\r\n    }\r\n}\r\n\r\nproject(':lib:external:g3m:WebGL:G3MWebGLSDK') {\r\n    apply plugin: 'java'\r\n    apply plugin: 'gwt'\r\n    apply plugin: 'gwt-base'\r\n    apply plugin: 'eclipse'\r\n\r\n    repositories {\r\n        maven {\r\n            url 'https://github.com/steffenschaefer/gwt-gradle-plugin/raw/maven-repo/'\r\n        }\r\n        mavenCentral()\r\n    }\r\n\r\n    dependencies {\r\n        compile project(':lib:external:g3m:Commons:G3MSharedSDK')\r\n    }\r\n\r\n    gwt {\r\n        gwtVersion='2.6.0'\r\n\r\n        sourceSets {\r\n            main {\r\n                java {\r\n                    srcDir 'src'\r\n                }\r\n            }\r\n        }\r\n    }\r\n}\r\n\r\n```"}}