http://www.oodlestechnologies.com/blogs/Facebook-Style-Slide-Menu-In-Android
http://android-er.blogspot.in/2012/12/a-simple-example-using-google-maps.html
Android studio gradle
Error:(16, 0) Gradle DSL method not found: 'android()' Possible causes:<ul><li>The project 'slide_menu' may be using a version of Gradle that does not contain the method. <a href="openGradleSettings">Gradle settings</a></li><li>The build file may be missing a Gradle plugin. <a href="apply.gradle.plugin">Apply Gradle plugin</a></li>
Solution
http://android-er.blogspot.in/2012/12/a-simple-example-using-google-maps.html
Today
I will blog on Facebook style slide menu in android, you have to follow
the given step in order to implement fb style menu.
Download Source Code
- See more at: http://www.oodlestechnologies.com/blogs/Facebook-Style-Slide-Menu-In-Android#sthash.nPPjx1c9.dpuf
- Create a new android project in eclipse(Minimum Required Android SKD 2.2 ).
- Download slider.jar file from here.
- Place slider.jar in lib folder in project
- Create two Android XML Files one for left menu and other for right menu say "left_menu.xml" and "right_menu.xml".
- There are some pre defined funstions in "slider.jar" which help us to create fb style slide menu.
* setRightBehindContentView(right_layout) is used to set right menu.
* toggleLeftDrawer() is used to show the left menu.
* toggleRightDrawer() is used to show the right menu.
- Now, open "MainActivity.java" and place the given code in it.
Download Source Code
- See more at: http://www.oodlestechnologies.com/blogs/Facebook-Style-Slide-Menu-In-Android#sthash.nPPjx1c9.dpuf
Android studio gradle
Error:(16, 0) Gradle DSL method not found: 'android()' Possible causes:<ul><li>The project 'slide_menu' may be using a version of Gradle that does not contain the method. <a href="openGradleSettings">Gradle settings</a></li><li>The build file may be missing a Gradle plugin. <a href="apply.gradle.plugin">Apply Gradle plugin</a></li>
Solution
in the gradle-wrapper.properties use the following
in build.gradle use
also replace
with
I hope this can help---------------------------------------------------------------------------------------------- latest gridle is 2.2.1
The Android Gradle plugin version is typically listed in the top level
build.gradle file in the project, and can be updated as follows: dependencies { - classpath 'com.android.tools.build:gradle:0.8.+' + classpath 'com.android.tools.build:gradle:1.0.0' }
The version of Gradle to use for your project should also be updated to 2.2.1 or later. You can do that by editing the file
gradle/wrapper/gradle-wrapper.properties : zipStorePath=wrapper/dists -distributionUrl=http\://services.gradle.org/distributions/gradle-1.11-all.zip +distributionUrl=http\://services.gradle.org/distributions/gradle-2.2.1-all.zip
Using '
minifyEnabled ' instead of 'runProguard ' works properly.Previous code :
Current code :
|
No comments:
Post a Comment