Eclipse to Android Studio Import -
i moving source codes as suggested android official website. however, experience not good. sluggish described here. not ultimate problem now.
i have resolved many problems such updating compilesdkversion
23 99 errors of kind:
error:(13) error retrieving parent item: no resource found matches given name 'android:textappearance.material.inverse'.
could rectified. problems keep on shooting go. have 64k dex issue.
error:the number of method references in .dex file cannot exceed 64k. learn how resolve issue @ https://developer.android.com/tools/building/multidex.html
i never had dex
issue while using eclipse. source code have in same when in eclipse
. differences gradle changes needed work on as. idea why sudden dex
issue? if set multidexenabled
true
, implications?
i suspect dex error result of growth of library, without more info, hard debug. newest version of android studio (2.2) provides apk analyzer tool makes dex limit more transparent.
when using google play services apis should double check make sure you're including ones used these directives compile 'com.google.android.gms:play-services-fitness:9.6.1'
rather including (full list).
if need libraries you're depending on then, typically resolved enabling multidex in development environment (requiring development using device or emulator l or greater), using minificationenabled in release builds such multidex isn't required in release apk. results in combination of fast debug builds , non-multidex release builds prevent slow startup times release build.
a bit more info: when use native multidex in debug builds (requires minsdk set l or greater) results in faster incremental builds because modules , libraries deploy separate dex files , less processing between deploys.
when use minificationenabled in release build eliminates need second dex file because methods dependendencies don't use trimmed. typically results in single dex nullifying negative effects of multidex (copying n+1 dex files on app initialization < version l devices).
Comments
Post a Comment