Comments (17)
When I change minifyEnabled
to false
, the problem is solved .
from architecture-samples.
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:
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.
I encountered the same problem.
from architecture-samples.
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.
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.
@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.
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.
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.
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.
@Jack-Xiao are you on Windows too?
from architecture-samples.
I've reported the problem to the build tools team.
from architecture-samples.
thanks
from architecture-samples.
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.
@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.
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.
Please replace
minifyEnabled true
with
minifyEnabled false
for the debug buildType, until 2.2 is out.
from architecture-samples.
This has been fixed in the tools, we'll update all samples next week.
from architecture-samples.
Related Issues (20)
- How can I contribute to this project?
- Max Grillasca HOT 2
- Snackbar shown again on popBackstack() HOT 1
- If I import this project to my Android Studio? HOT 2
- [Data layer codelab] Small error in 'refresh()' method in Chapter 7
- "Checkbox state does not update Text UI component correctly in TaskItem Composable" HOT 1
- kts HOT 1
- Dagger Hilt Kapt to Ksp HOT 4
- Excessive Auto-Generated Files and Cleanup Process in Hilt-Integrated
- Dagger Hilt Kapt to Ksp
- Using Hilt2.48.1 version, it is not compatible with BaseViewModel
- Architeture sample google
- Why is the domain model located in the data folder? HOT 2
- f6463f39c92c2417093e01b12d78726dc0a52757
- How to perform retry for loading UI state when using .stateIn() approach? HOT 1
- Is there any documentation or literature about “new statusbar”?
- [Feature Request] Auto-Scroll Capture Functionality
- [Data layer codelab] Section 7 (Create the task repository) should reuse mapped data HOT 2
- Did you have any idea to scale this app further more?
- Kali linux
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from architecture-samples.