android


Android Studio - Top Level Exception - Support Lib via maven


i'm working with android studio and i have an issue... i import 2 libraries (facebook SDK and Aws) that both use and import the android support v4 libs, doing that gradle can't compile anything giving a bad top-level exception (dexDebug).
In others answer i saw that i can solve this situation in 2 ways, removing one of the libs (but i can't because i need both) or using the "multipledex = true" in build.gradle that give me another error for the length of the command.
So, what i should do? Shall i stop using AS and go back to Eclipse? Or anybody have a solution?
Thanks,
Andrea
Don't import the support library by copying its jar as you used to in Eclipse. In Gradle, access it via its Maven coordinates and the build system will ensure that only one copy gets linked into your project:
dependencies {
compile 'com.android.support:support-v4:X.X.X'
}
where X.X.X is the right version number for your SDK installation. If you manage the dependency via Project Structure > (your module) > Dependencies > + > Library dependency it will help you get the version number right.

Related Links

Hidden Spinner does not trigger event
Android NullPointerException in create comunication listener between Fragment and Activity
How to send multipart/form-data with Retrofit?
how to hide or disable actionMode in CHOICE_MODE_MULTIPLE_MODAL in listview
How to structure the tabs in a tabHost in Android?
Why am I not allowed to use setOnClickListener in this situation?
Implementing admob for different activities
Set margin to “standalone” view
Fetch Facebook album cover photo - Android
Need to implement an instant messaging for iOS and Android? [closed]
window.localStorage.setItem not working on mobile phone
Glympse API while sending sms TICKET_INVITE_FAILED
Android do ToolBar icon animation programmatically
android: custom view layout wrapping
Checkbox in a custom adapter to update the database
Google Cloud module not visible in Android Studio

Categories

HOME
search
paraview
eslint
dns
amp-html
pagination
mjml
pyqt
pclxl
seo
carousel
google-apps
polling
bing-maps
openpyxl
project-intu
alamofire
do-while
altera
chargify
pyramid
mapstruct
cfml
microsoft-ocr
backpack-for-laravel
r-mice
pimcore
pchart
displaytag
resourcebundle
dapper-extensions
moses
appirater
flooding
fragment-backstack
amazon-quicksight
fractions
handler
errbot
cppreference
finagle
xbox
zend-debugger
sql-server-2000
hibernate-validator
r-grid
pop3
batching
searchkit
hivemq
watchman
openalpr
urlsession
kill
skylink
attributeerror
wmp
linqpad
sharp-snmp
logback-groovy
smoothstate.js
android-exoplayer
clang++
snapchat
ovf
clarifai
hammer.js
activeperl
context-sensitive-grammar
oracleclient
arules
py2neo
mathcad
taocp
builtins
webjars
file-uri
refinerycms
cassia
tracker-enabled-dbcontext
gcloud-ruby
redis-cluster
dnssec
nsurlsessiondatatask
java-security
beatsmusic
pseudo-class
genymotion-call
raygun
named-parameters
malformedurlexception
koala
ecslidingviewcontroller
android-usb
cffile
cmmi
node-blade
jquery-1.9
pagedown
pdfviewer
panda3d
patricia-trie
monotouch.dialog
lambdaj
rmdir
clrstoredprocedure
cdonts
mtu
squishit
web-garden
scrollbars
pagemethods
web-application-project
fault-tolerance
httpcookie
wcf-proxy
leader

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App