Profile cover photo
Profile photo
Wouter de Vos
21 followers
21 followers
About
Wouter's interests
View all
Wouter's posts

Post has attachment
Does anyone have experience with this particular issue:

Error type 3
Error: Activity class {...} does not exist.
Error while Launching activity

That is the gist of the error. My project was building fine until I added a second product flavor. Every time I try to build that product flavor the error appears. When I switch to the original product flavor there is no error. I have seen posts like below where they recommend cleaning and rebuilding the project. I've tried these recommendations but I'm not having any luck. Other people have said that it's a bug in Android Studio. Any help would be greatly appreciated.


Post has attachment
Hi there. I've enjoyed using Data binding for some time now, but unfortunately I haven't had any luck getting around a particular issue. In short, a get a compile error when I try to import the List type into my xml file. Follow this link for more details. Does anyone know how to do this properly?

Hi there. I'm having a problem compiling my project with databinding. I recently updated a project to the latest SDK. I changed the compileSdkVersion and the targetSdkVerion from 23 to 24. I also changed all the support libraries to 24.1.1. As far as I can tell, there are no new build tools, so I'm still using buildToolsVersion 23.0.3. The databinding was working fine before I upped all the version numbers. Now it won't compile because it says that it can't find the databinding package. Is this a known issue or am I doing something wrong? Any assistance would be greatly appreciated.

Post has attachment
I am trying to improve my code architecture with MVP and loaders. I discovered the android architecture page on Github and I've been looking closely at this sample: https://github.com/googlesamples/android-architecture/tree/todo-mvp-loaders/. I noticed that the sample uses a fragment for the view and passes that along to the presenter. From what I understand about fragments, if the app goes into the background the fragment manager maintains the fragment and it wont be recreated when the app comes back into the foreground. However, if the activity is destroyed during a configuration change, then the fragment will need to be recreated. Doesn't this imply that there will be a memory leak in the presenter because it is keeping a reference to the fragment? From what I've learned the presenter needs to keep a weak reference to the fragment to avoid a memory leak. Not sure if I'm wrong about this, but if anyone could share their knowledge and perhaps recommend an alternative it would be greatly appreciated. Thanks in advance.

Post has shared content
I've noticed that Android Studio 2.0 takes an extremely long time to do a clean build of a project. I've been working on the same project for a few months now. Android Studio 1.5 built the project very quickly. Now that I've switched to 2.0, I've noticed that it takes the same project around 13 minutes to build. How can this be? Could anyone provide any recommendations?

Thanks you

I've noticed that Android Studio 2.0 takes an extremely long time to do a clean build of a project. I've been working on the same project for a few months now. Android Studio 1.5 built the project very quickly. Now that I've switched to 2.0, I've noticed that it takes the same project around 13 minutes to build. How can this be? Could anyone provide any recommendations?

Thanks you

I was extremely excited for Emulator 2.0, but after using it for over 2 weeks now, I am quite disappointed with it. It takes approximately 13 minutes for gradle to build a project and deploy it to the emulator. I thought the install times were supposed to be super fast. This doesn't seem to happen all the time, but it is still extremely slow in my opinion. Does anyone have any idea why I might be experiencing such slow speeds?

Hi guys. I feel like there is a serious deficiency in the Data Binding Guide when it comes to setting up your environment. The guide does not mention anything about adding the following lines to your gradle files:

classpath 'com.android.databinding:dataBinder:1.0-rc1'
apply plugin: 'com.android.databinding'

How exactly were we supposed to figure this out? If it weren't for other people's tutorials on the web, I wouldn't know how to do this.

I'm also struggling to integrate the latest versions of the plugin into my project. When I try to add "classpath 'com.android.databinding:dataBinder:1.0-rc4'" then I get the following error:

"Error:Unable to find method 'android.databinding.tool.LayoutXmlProcessor.<init>(Ljava/lang/String;Landroid/databinding/tool/writer/JavaFileWriter;IZLandroid/databinding/tool/LayoutXmlProcessor$OriginalFileLookup;)V'.
Possible causes for this unexpected error include:<ul><li>Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)"

Could someone please offer some help with this.

Post has attachment

Post has attachment
Wait while more posts are being loaded