android


Gradle error :app:processDevDebugManifest FAILED when added <supports-screens>


I am replacing the < compatible-screens > to < supports-screens >. and it was dependency issue with ZXing library code to scan bar code. Error is displayed below.
AndroidManifest.xml:121:9-37 Error: Attribute
supports-screens#smallScreens value=(false) from
AndroidManifest.xml:121:9-37 is also present at [xyz:unspecified]
AndroidManifest.xml:17:9-36 value=(true).
:app:processDevDebugManifest FAILED
FAILURE: Build failed with an exception.
I also added in tools:replace in manifest.
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="c.x.y">
<!--<compatible-screens>-->
<!--<!– all small size screens –>-->
<!--<!– <screen android:screenSize="small" android:screenDensity="ldpi" /> –>-->
<!--<screen-->
<!--android:screenDensity="mdpi"-->
<!--android:screenSize="small" />-->
<!--<screen-->
<!--android:screenDensity="hdpi"-->
<!--android:screenSize="small" />-->
<!--<screen-->
<!--android:screenDensity="xhdpi"-->
<!--android:screenSize="small" />-->
<!--<screen-->
<!--android:screenDensity="480"-->
<!--android:screenSize="small" /> <!– xxhdpi –>-->
<!--<screen-->
<!--android:screenDensity="640"-->
<!--android:screenSize="small" /> <!– xxxhdpi –>-->
<!--<!– all normal size screens –>-->
<!--<!– <screen android:screenSize="normal" android:screenDensity="ldpi" /> –>-->
<!--<screen-->
<!--android:screenDensity="mdpi"-->
<!--android:screenSize="normal" />-->
<!--<screen-->
<!--android:screenDensity="hdpi"-->
<!--android:screenSize="normal" />-->
<!--<screen-->
<!--android:screenDensity="xhdpi"-->
<!--android:screenSize="normal" />-->
<!--<screen-->
<!--android:screenDensity="420"-->
<!--android:screenSize="normal" />-->
<!--<screen-->
<!--android:screenDensity="480"-->
<!--android:screenSize="normal" />-->
<!--<screen-->
<!--android:screenDensity="560"-->
<!--android:screenSize="normal" />-->
<!--<screen-->
<!--android:screenDensity="640"-->
<!--android:screenSize="normal" />-->
<!--<!– all small size screens –>-->
<!--<!– <screen android:screenSize="small" android:screenDensity="ldpi" /> –>-->
<!--<screen-->
<!--android:screenDensity="mdpi"-->
<!--android:screenSize="small" />-->
<!--<screen-->
<!--android:screenDensity="hdpi"-->
<!--android:screenSize="small" />-->
<!--<screen-->
<!--android:screenDensity="xhdpi"-->
<!--android:screenSize="small" />-->
<!--<screen-->
<!--android:screenDensity="480"-->
<!--android:screenSize="small" /> <!– xxhdpi –>-->
<!--<screen-->
<!--android:screenDensity="640"-->
<!--android:screenSize="small" /> <!– xxxhdpi –>-->
<!--<!– all normal size screens –>-->
<!--<!– <screen android:screenSize="normal" android:screenDensity="ldpi" /> –>-->
<!--<screen-->
<!--android:screenDensity="mdpi"-->
<!--android:screenSize="normal" />-->
<!--<screen-->
<!--android:screenDensity="hdpi"-->
<!--android:screenSize="normal" />-->
<!--<screen-->
<!--android:screenDensity="xhdpi"-->
<!--android:screenSize="normal" />-->
<!--<screen-->
<!--android:screenDensity="420"-->
<!--android:screenSize="normal" />-->
<!--<screen-->
<!--android:screenDensity="480"-->
<!--android:screenSize="normal" />-->
<!--<screen-->
<!--android:screenDensity="560"-->
<!--android:screenSize="normal" />-->
<!--<screen-->
<!--android:screenDensity="640"-->
<!--android:screenSize="normal" />-->
<!--</compatible-screens>-->
<supports-screens
android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="false"
android:xlargeScreens="false" />
<application
android:allowBackup="false"
android:hardwareAccelerated="true"
android:icon="#mipmap/ic_launcher"
android:label="#string/app_name"
android:largeHeap="true"
android:theme="#style/AppTheme"
tools:replace="android:label, android:icon, android:allowBackup, android:smallScreens, android:xlargeScreens">
Thanks.
Solved:
Instead of using the tools:replace in application tag, i moved in inside the < support-screen > and it worked.
<supports-screens
android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="false"
android:xlargeScreens="false"
tools:replace="android:smallScreens, android:xlargeScreens"
/>

Related Links

Touch events double firing on Safari for iOS
Fetch Data from Sqlite Database using Sqlite Plug-in (PhoneGap)
Animations get into infinite loop if they are started in the onAnimationEnd of AnimationListener
Intel XDK (Applications in HTML5)
Notify fragment when it comes into view?
What is the difference between “Run As Android Application” and “Debug As Android Application”?
How to get the pixel value of the display in Android?
Daydream's setting page is crashing on load
Use current location in many android activities
How to set new adapter to expandable listview after already set adapter?
What is use of this new code added in Mainacivity on update of ADT and new androide sdk? [closed]
Dismissing Fragment Dialog onResume
android dynamically add checkbox Compilation error
Displaying all x axis labels; not just ones where a point value exists
How do I require a device-level passcode to use my Phonegap app on iOS and Android?
Is it possible to retrieve cookies from a website without using android.webkit.WebView?

Categories

HOME
turing-machines
jpa
cobalt
css3
case
toolbox
serialization
fftw
entity-framework-core
emscripten
jax-ws
mvc5
odoo-8
boto3
computer-science
owin
heap
jxl
gkturnbasedmatch
android-intent
azure-powershell
chargify
red5
digital-signature
sigma.js
apache2.4
articulate-storyline
exit
object-storage
tosca
maze
gpio
cognos-bi
glib
r-grid
least-squares
apiary.io
ideascript
projects-and-solutions
recurrent-neural-network
metaprogramming
typesafe-config
spring-mvc-test
news
trigonometry
visa
softmax
chronicle-map
apollostack
android-checkbox
plan-9
yii2-api
launchctl
lightning
payara-micro
scalding
truezip
dt
gpg-signature
ampps
rxtx
reachability
rmongo
vcloud-director-rest-api
pytables
stax
winusb
pacemaker
jquery-jscrollpane
ng-grid
tracker-enabled-dbcontext
sklearn-pandas
evolus-pencil
lasso
ansi
zxspectrum
infosphere-spl
rapidsvn
webmatrix-3
viewer
addressing-mode
sonarqube-5.0
easyrtc
appserver
unix-socket
ignite-ui
dot42
spring-remoting
drupal-nodes
hibernate-entitymanager
boost-signals
httponly
azman
procedures
google-floodlight
automationelement
xui
msr
timertask
object-database
binomial-heap
spread
firefox-3
change-management

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile