Comments (25)
<uses-sdk tools:node="merge" android:minSdkVersion="MIN_SDK" android:targetSdkVersion="TARGET_SDK" />
from asne.
I use last stable Android Studio 0.8.6 and remember that there are same error with gradle tools 0.13.2 but than it was fixed
check this question and approved answer
just updates to 0.9.1 and gradle tools to 0.4.1
and if it works - can you notify me please? if not I try to reslve it via gradle scripts - main idea of using tools:node="replace" is to resolve merge conflicts with oter libs and make ASNE modular
from asne.
Thanks for your feedback.
I've already updated to Android Studio 0.9.1 and gradle tools 0.14.1 but this doesn't solve my problem.
I've also Invalidated the caches as suggested here, and this doesn't help.
from asne.
I also have the same problem (and I am the author of the suggestion mentioned above)
Trying to assemble a release build w/ Android Studio 0.9.1 and Gradle Tools 0.14.1 reproduces the error.
from asne.
I found a temporary workaround:
- Open your project with Android Studio 0.8.14 / Gradle build tools 0.13.2
- Build your project ex.
gradlew assembleRelease
- Switch back to Android Studio 0.9.1 / Gradle build tools 0.14.1
gradlew assembleRelease
will work now
I'm guessing the manifest was already merged for that specific build type.
This means any change to the manifest file will require new manifest merger.
from asne.
is it possible to remove tools:node="replace" in ASNE?
i can't compile my project when using ASNE on AS 0.9.2, Gradle tools 0.14.1
tried every method to get it compiled but failed and the workaround by @TheMedo is not an option for me
from asne.
using this workaround compiles my app
android.applicationVariants.all { variant ->
variant.processResources.manifestFile = file('src/main/AndroidManifest.xml')
variant.processManifest.enabled=false }
but it slows my app down. i.e: listview doesn't scroll smoothly anymore.
from asne.
I am also with @edward-s: AS 0.9.2, Gradle 0.14.1, and Android build tools 21.1.1.
@TheMedo workaround is not an option and @edward-s workaround is not an option either since I have multiple builds with different package names and references that require that to be turned on.
@gorbin is removing tools:node="replace" in ASNE an option?
from asne.
Same here, is it possible to remove tools:node from ASNE without causing to much problems?
from asne.
I was in the hospital and could not keep track of the project or fix anything but for now I'm fine and very grateful to you for the issues. I am very interested in this project and will develop it further.
If I remove tools:node it should break merge different libraries in project, trying to find another solution. Work on it now...
I agree with @alenz316 workaround with different studios not an option - try to find another way to solve it. But hot fix until I solve it
Thanks everyone for your support
from asne.
sory for my bad language
i've an alternnative for this issue new android studio
- Setting your gradle from @gorbin 's link on first answer
- Manual merge Manifest library to your App manifest. ex: when using ASN FB library, you must add like permission , activity and etc from ASN FB manifest to your manifest. if already exist, do not add anymore.
- Rebuild your project
Until now, @gorbin 's ASN library work fine for me.
of course with new version android studio :)
I hope this studio android issue resolved soon, Thanks
from asne.
I remove uses-sdk and fully update all to last versions of libs and sdks
It works fine in my dev studio, but not sure in stable version - will check it soon
from asne.
Excellent news!
Let us know when the latest version is available on Maven Central :)
from asne.
Woohaa! Go for it!
On Thu, Nov 20, 2014 at 2:29 PM, TheMedo [email protected] wrote:
Excellent news!
Let us know when the latest version is available on Maven Central :)—
Reply to this email directly or view it on GitHub
#46 (comment).
Quentin DOMMERC
Android developer
Linkedin http://www.linkedin.com/in/quentindommerc
Twitter http://twitter.com/kentin_dommerc
from asne.
THANK YOU!
from asne.
just released 0.3.3 version to maven - fully updated to sdk, api, plagins versions
Checked in stable and canary studios - got only one problem with gradle sdk version - update project gradle sdk version to 2.1
p.s.
it need few hours to update maven central repo - just wait a bit)
from asne.
Seems to work fine now with 0.3.3, thanks for fixing it!
from asne.
thank you!!!
from asne.
Still have the Problem. Please Help
from asne.
updated to 0.3.3
now the problem is:
Error:Execution failed for task ':app:dexDebug'.
> com.android.ide.common.internal.LoggedErrorException: Failed to run command:
/root/Android/Sdk/build-tools/21.1.2/dx --dex --no-optimize --output /home/matan/AndroidStudioProjects/Stars/app/build/intermediates/dex/debug --input-list=/home/matan/AndroidStudioProjects/Stars/app/build/intermediates/tmp/dex/debug/inputList.txt
Error Code:
2
Output:
UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]: 65536
at com.android.dx.merge.DexMerger$6.updateIndex(DexMerger.java:502)
at com.android.dx.merge.DexMerger$IdMerger.mergeSorted(DexMerger.java:277)
at com.android.dx.merge.DexMerger.mergeMethodIds(DexMerger.java:491)
at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:168)
at com.android.dx.merge.DexMerger.merge(DexMerger.java:189)
at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:454)
at com.android.dx.command.dexer.Main.runMonoDex(Main.java:303)
at com.android.dx.command.dexer.Main.run(Main.java:246)
at com.android.dx.command.dexer.Main.main(Main.java:215)
at com.android.dx.command.Main.main(Main.java:106)
from asne.
@matantsu your problem is not related. You have over 65k methods in your project. Check https://developer.android.com/tools/building/multidex.html
from asne.
I still have this problem,
Android Studio 1.2.2
from asne.
I Found a solution to this problem,
In AndroidManifest file
-add this line to mainfest tag:
xmlns:tools="http://schemas.android.com/tools"
-add this tag:
from asne.
@mohamed-habib, can you post some code?
from asne.
I don't understand what code exactly do you want?
my last comment was code to be written in the manifest file.
from asne.
Related Issues (20)
- OkAuthActivity - Unable to find
- cannot find symbol method OnGetFriendsIdComplete
- Not getting Login success Callback from any social login HOT 1
- Email null for Facebook, twitter, linkedin HOT 4
- Requesting Detail profile of user for Facebook App crashes
- Getting a Attempt to invoke virtual method 'android.support.v4.app.FragmentManager android.support.v4.app.FragmentActivity.getSupportFragmentManager()' on a null object reference HOT 3
- While Login on LinkedIn getting this error HOT 1
- "Must be called from main thread of process" Error in OkAuthActivity.java
- Not requested Vk email. Field always is null.
- Error:Configuration with name 'default' not found.
- Confustion about setup
- Incompatible types SocialNetworkManager
- get twitter follower counts
- Error:Error converting bytecode to dex HOT 1
- Security warning HOT 5
- Dead project
- DialogFragment instead of Fragment HOT 1
- Error: Can't get personStatus{statusCode=NETWORK_ERROR,resolution=null})
- "java.lang.IncompatibleClassChangeError" If I include GooglePlus dependency
- For LinkedIn its not working
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 asne.