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

displaying firebase storage images in a RecyclerView
Menu in android, application doesn't launch
Android: Cropping an image after capture or picking from Gallery
UiAutomator Android does not recognize alert pop
React Native: as overflow = hidden on Android, how can we design floating action button
Is possible to determine beacon's location from Android?
android different apks same authenticator account type
Sharing Asset Image from Android custom IME, working for everything except Gmail and MMS
Download Streamed gif file and store in byte array
Android JSONParser Php
How can I get an ImageView's tint color programatically?
How to make compressed lightmaps look better?
wait for AsyncTask to finish
Is it doable to collect user fingerprint with android?
After fragment replace fragment view not scrollable
Group Firebase FCM on Android Device

Categories

HOME
asp.net-web-api
scikit-learn
twitter-bootstrap-3
fuelux
awk
eslint
string
pagination
android-studio-2.2
themes
apiblueprint
bitbucket-api
xbee
elasticsearch-5
mxgraph
frequency-distribution
symmetricds
gruntfile
red5
android-7.0-nougat
cfml
kendo-mobile
spring-async
libigl
backpack-for-laravel
monit
direct3d11
mount
google-cloud-print
android-sharedpreferences
soot
jaws
testcomplete
userdefaults
aws-codecommit
xbox
complex-numbers
left-join
laravel-eloquent
instantiation
activexobject
yowsup
batching
google-knowledge-graph
lint
git-rewrite-history
modernizr
password-protection
portforwarding
ssrs-2014
congestion-control
memory-mapping
mesosphere
lampp
payara-micro
static-cast
java-6
choice
cvxpy
meteor-packages
grails-plugin
redbeard-ios
qtplugin
jodd
jboss-tools
hclust
scaffolding
dimension
createprocess
qbxml
user-management
libvlc
java-money
themoviedb-api
zscript
at-job
webmatrix-3
iiop
genymotion-call
xml-dsig
vbe
light
gpars
superscrollorama
wiimote
update-statement
entitydatasource
socketserver
cruisecontrol.rb
tabpanel
data-mapping
visualj#
perl5.12
dsoframer
appliance

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