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

Sample Android Code for moving an image behind a selection box
Android 4.4.4 can not connect to Nordic semi SDK 13 devices
Unable to set drawable as background on a textview in api 19
Android Make one request with post method, but it save 2 data in database
Android command is depreciated after updating SDK
The resolution doesn't fit the screen
Camera2 API Real-Time OCR
Android ListView generated from SQLite database not displaying on phone screen (but displaying on emulator)
How to filter (not search) Listview BaseAdapter
The Activity restart after saving data in Firebase
How do I use ConstraintSet in Android to stack TextViews horizontally?
Turbolinks Android Adaptor - back button where to start
How to fix Android ListView Rendering Error where the checkboxes of the list items disappear?
SharedPreferences on first run are not saved when pressing Back Button
getfeatures of kml layer
How to add Firebase ChildEventlistener in Broadcast receiver

Categories

HOME
cygwin
phantom-dsl
oracle12c
localization
scikit-learn
delphi-7
github-for-windows
angular2-material
youtube-data-api-v3
mstest
xbee
cq5
square
bookmarks
settings
jtextpane
special-characters
p2p
dkim
endeca
enthought
android-securityexception
activecollab
mxgraph
x-cart
datastage
package.json
fileserver
simpleitk
breadth-first-search
imagemap
visual-studio-extensions
jquery-callback
beta
pic32
jquery-multiselect
fable-f#
linked-data
angular-translate
browser-sync
carrierwave
scrollview
send
mobx
mockjax
playstation-portable
openwhisk
processwire
imx6
lubridate
google-knowledge-graph
bc
laravel-elixir
knime
rfc3339
dynamic-linq
arq
aquamacs
edit
libjpeg
cpu-cache
google-photos
rxtx
flex-monkey
myspace
dotnetnuke-7
clipboard.js
freepbx
httpruntime.cache
lazybones
page.js
jdk1.7
skspritenode
kubuntu
zxspectrum
infosphere-spl
at-job
sip-server
insight.database
mdichild
gtm-oauth2
breakout
away3d
pclzip
server-administration
android-sdk-2.3
sqlclr
booksleeve
httponly
node-redis
multiplatform
clrstoredprocedure
strsep
web-application-project

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