Profile

Cover photo
Mike Kulasinski
Attended Kingston University
71 followers|465,756 views
AboutPostsPhotosVideosReviews

Stream

 
Hi, I would like to write a plugin for Android Studio and I need to get a hold of connected devices. I have the source of Android plugins and I can see they use ddmlib. Is there any guidance how write Android Studio plugins or how to get a hold of this dependency? +Tor Norbye  or +Xavier Ducrohet do you have any tutorials I could use for Android Intellij plugin development?

Thanks
1
Add a comment...

Mike Kulasinski

Community notices  - 
 
Checkout our new updated version of ECB App. Podcasts can be played in the app :-)
1
Add a comment...
 
I created stackoverflow question about #androidstudio  failing to build a project which builds fine with command line  #gradle  

I appreciate any help.

http://stackoverflow.com/questions/17033556/android-studio-fails-to-build
1
Werner Dittmann's profile photoMike Kulasinski's profile photo
3 comments
 
Werner I read your little article, I have already tried this solution by copying the gradle wrapper, unfortunately it did not work for me
Add a comment...

Mike Kulasinski

Discussion  - 
 
Dear Gradle 

Yesterday I finished fighting with Gradle setup for one of the projects (took me 4 days) however I still cannot build it with Android Studio.

Today I tried to migrate another project into Gradle and I cannot build it with Gradle and Android Studio.

What is wrong with Gradle and Android Studio. Aren't there any decent tutorials for complex project structure.

The problem I encounter is compile error, Gradle cannot find Java Class in one of the .aar libraries (which it generated), ridiculous! I navigated to the path and the class is there. 

To make it even more funny I generates 2 other aar and they are fine. I am extremely confused. Building the library by its own if OK so what is the problem???????

I think my patience is up, I am already considering switching back to eclipse
1
Mike Kulasinski's profile photo
 
I just figured out what was the problem with compiling. Apparently Eclipse does not use javac but some custom implementation. I only had to refer to the class I was extending by its full path 'com.sample.ClassA'. It was a very wired bug.
Add a comment...

Mike Kulasinski

Discussion  - 
 
Does anyone know answer to this question? I have exactly same problem.

Its about Gradle Multi-project setup but slightly more complex than the one from Android Gradle User Guide.

The User Guide does not cover whole project being a library, I think the problem is in what to write in libraries/projectBroot/build.gradle 

Please check this question out.

Thanks

http://stackoverflow.com/questions/16971375/android-gradle-build-with-sub-projects/16973700#16973700
1
Add a comment...

Mike Kulasinski

Shared publicly  - 
 
#io13

Just watched What's new in Android Developer tools and must say I am disappointed. It looks like they whole spend time writing Android Studio (which is great) but they completely forgotten about new features. Most of the features they presented are from last year. What about improving the method profiler (MAT), layout viewer (still ca t get views feom device unless 3rd party library used), opengl viewer (broken on jelly bean 4,2), and UI viewer. Curently there are lots of ways you can check and measure the performance of your app but they usually require a lot of effort. They need to be unified and most importantly made easier to use. 
1
Add a comment...
 
Just watched What's new in Android Developer tools and must say I am disappointed. It looks like they whole spend time writing Android Studio (which is great) but they completely forgotten about new features. Most of the features they presented are from last year. What about improving the method profiler (MAT), layout viewer (still ca t get views feom device unless 3rd party library used), opengl viewer (broken on jelly bean 4,2), and UI viewer. Curently there are lots of ways you can check and measure the performance of your app but they usually require a lot of effort. They need to be unified and most importantly made easier to use. 
2
Add a comment...
Have him in circles
71 people
Edyta Gosk's profile photo
Marcin Lament's profile photo
Daniel Hirsch's profile photo
Claude Marcelene's profile photo
Dominika Agatowska's profile photo
Carlos Sobrinho's profile photo
James McDougall's profile photo
Elsa Coderias's profile photo
Niccolo' Formai's profile photo

Mike Kulasinski

Discussion  - 
 
I think I found a bug in AS, when you edit settings.gradle to re-point the libraries like in example at http://stackoverflow.com/a/16974411/2368981 than AS generates this error 

Failed to import Gradle project: Could not fetch model of type 'IdeaProject' using Gradle distribution 'http://services.gradle.org/distributions/gradle-1.6-bin.zip'.
A problem occurred configuring project ':sample-android-app'.
A problem occurred configuring project ':sample-android-app'.
Failed to notify project evaluation listener.
Configuration with name 'default' not found.

My settings.gradle looks like: 

include ':sample-android-app', 'utils', 'imageDownloader', 'parsers'

project(':utils').projectDir = new File('libraries/android-libs/utils')
project(':imageDownloader').projectDir = new File('libraries/android-libs/imageDownloader')
project(':parsers').projectDir = new File('libraries/android-libs/parsers')

and sample-android-app build.gradle is:

buildscript {
    repositories {
        mavenCentral()
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:0.4.2'
    }
}

apply plugin: 'android'
dependencies {
    compile 'com.android.support:support-v4:13.0.0'
    compile project (':utils')
    compile project (':parsers')
    compile project (':imageDownloader')

    compile files('libs/FlurryAgent.jar')
    compile files('libs/urbanairship-lib-1.0.5.jar')
}

android{
    compileSdkVersion 17
    buildToolsVersion "17.0.0"

    defaultConfig {
        minSdkVersion 7
        targetSdkVersion 17
    }
}

The only way arround that problem is to move libraries into sample-android-app than settings.gradle will not contain new fake location to files.

+Xavier Ducrohet do you think it is a bug? You recommended this solution on stackoverflow.

Thanks
1
Add a comment...
 
Hi guys, 

I have managed to build my project using command line ( #gradle  build) but I cannot import project into #androidstudio    I get this error.

Before you ask:
* I do not use any proxies
* I have exactly same error when using gradlew

Thanks for help
1
Mike Kulasinski's profile photoPaulo Antonio McNally Zambrana's profile photo
8 comments
 
ok, continue in stackoverflow
Add a comment...
 
Is anyone else struggling with #Gradle setup? I have been trying to get my project running with Gradle for past 3 days but with no luck. I'll appreciate any support to help me resolve my issue. My stack overflow problem is http://stackoverflow.com/questions/16971375/android-gradle-build-with-sub-projects/16994705#16994705
1
Add a comment...

Mike Kulasinski

Discussion  - 
 
Hi Guys

Does anyone know how to use Gradle in Android Studio, I watched Google I/O "What's new in Android Development Tools" and Xavier mentioned that he will have session https://developers.google.com/events/io/sessions/325236644 about it, but I could not find any video. 

Thanks
6
Mike Kulasinski's profile photoNicholas Nezis's profile photo
3 comments
 
I did an import of a project, but the behavior was a little different compared to a new project. I would start with that to learn the "proper" structure.
Add a comment...
 
How come Play Music does not allow you to purchase (try out) subscription to Play Music All. Is this UK issue only? Any one having same problem?
2
Mike Kulasinski's profile photoOwen Campbell-Moore's profile photoLewis McGeary's profile photo
3 comments
 
A strange way to show it, but yes, they stated US only at the moment.
Add a comment...
People
Have him in circles
71 people
Edyta Gosk's profile photo
Marcin Lament's profile photo
Daniel Hirsch's profile photo
Claude Marcelene's profile photo
Dominika Agatowska's profile photo
Carlos Sobrinho's profile photo
James McDougall's profile photo
Elsa Coderias's profile photo
Niccolo' Formai's profile photo
Basic Information
Gender
Male
Education
  • Kingston University
    2007
Links
1 review
Map
Map
Map