Git Product home page Git Product logo

Comments (17)

foolchen avatar foolchen commented on July 3, 2024 3

When I change minifyEnabled to false, the problem is solved .

from architecture-samples.

malmstein avatar malmstein commented on July 3, 2024 1

These two lines in the default proguard-android.txt file are the issue:

void set*(%[]);
%[] get*();;

As a quick fix this is how I made it work in the Content Providers sample:

https://github.com/googlesamples/android-architecture/blob/dev-todo-mvp-contentproviders/todoapp/app/proguard-android.txt

Basically, grabbing the default proguard-android file and adding it to the folder:
https://github.com/googlesamples/android-architecture/blob/dev-todo-mvp-contentproviders/todoapp/app/build.gradle#L22

from architecture-samples.

foolchen avatar foolchen commented on July 3, 2024

I encountered the same problem.

from architecture-samples.

JoseAlcerreca avatar JoseAlcerreca commented on July 3, 2024

The problem is only hidden if you do that, and your method count will be bigger.

proguard-android.txt is the SDK's proguard file. I have not seen that error, let me investigate.

from architecture-samples.

JoseAlcerreca avatar JoseAlcerreca commented on July 3, 2024

What sample were you trying to build? I just updated todo-mvp to use the gradle plugin 2.1.0, from 2.1.0-beta3, can you try again?

from architecture-samples.

Jack-Xiao avatar Jack-Xiao commented on July 3, 2024

@foolchen thanks, It's work! however, what's happen.
@JoseAlcerreca the project is architecture-todo base model, and solved this problem follow foolchen method.

from architecture-samples.

JoseAlcerreca avatar JoseAlcerreca commented on July 3, 2024

Again, disabling the minifier doesn't solve the problem.

When you say base model do you mean todo-mvp?

Can you try with 2.1.0?

from architecture-samples.

Jack-Xiao avatar Jack-Xiao commented on July 3, 2024

Yes, the todo-mvp,and link: https://github.com/googlesamples/android-architecture/tree/todo-mvp/
my project gradle version is also 2.1.0, and i share the problem todo-mvp project in my github :https://github.com/Jack-Xiao/todoapp

from architecture-samples.

Xiadalei avatar Xiadalei commented on July 3, 2024

Same problem here.
Gradle 2.1.0 and with Android Studio 2.1.1 in Windows
Try to build every official model and fail with same error

P.S. Problem only occurred after the update of May, 13th, which I believe is AS 2.1 --> 2.1.1 and support library update.

from architecture-samples.

JoseAlcerreca avatar JoseAlcerreca commented on July 3, 2024

@Jack-Xiao are you on Windows too?

from architecture-samples.

JoseAlcerreca avatar JoseAlcerreca commented on July 3, 2024

I've reported the problem to the build tools team.

from architecture-samples.

Jack-Xiao avatar Jack-Xiao commented on July 3, 2024

thanks

from architecture-samples.

bendowski avatar bendowski commented on July 3, 2024

Hi, this is Michal from the build tools team. I can't reproduce the problem, I tried git commit 10fbc69 in android-architecture, todo-mvp branch - and it built just fine. Are you using the same branch/project/commit? If not, can you post the commit number where you see the problem?

from architecture-samples.

Jack-Xiao avatar Jack-Xiao commented on July 3, 2024

@benol i also use gradle version 2.1.0.
@malmstein it work with your file. It seems remove the problem getter setter method, and change Listener method? And, what happend. All of us maybe want to know.

from architecture-samples.

bendowski avatar bendowski commented on July 3, 2024

I can reproduce now, thanks. It's a known issue with the parser in 2.1, it's been fixed for 2.2.

from architecture-samples.

JoseAlcerreca avatar JoseAlcerreca commented on July 3, 2024

Please replace

minifyEnabled true

with

minifyEnabled false

for the debug buildType, until 2.2 is out.

from architecture-samples.

JoseAlcerreca avatar JoseAlcerreca commented on July 3, 2024

This has been fixed in the tools, we'll update all samples next week.

from architecture-samples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.