java - "non-zero exit value 42" -
i having issue adding custom images app. when do,i gradle errors. searched on here , seen solution add:
android: { usenewcruncher false }
but didn't help. still getting "non-zero exit value 42 error". here gradle
apply plugin: 'com.android.application' android { compilesdkversion 23 buildtoolsversion "23.0.2" aaptoptions { usenewcruncher false } defaultconfig { applicationid "net.androidbootcamp.techgadgets" minsdkversion 16 targetsdkversion 23 versioncode 1 versionname "1.0" multidexenabled true } buildtypes { release { minifyenabled false proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { compile filetree(dir: 'libs', include: ['*.jar']) testcompile 'junit:junit:4.12' compile 'com.android.support:appcompat-v7:23.2.0' compile 'com.android.support:design:23.2.0' }
here of gradle errors
error:error: com.android.ide.common.process.processexception: org.gradle.process.internal.execexception: process 'command '/users/slyinstinct/library/android/sdk/build-tools/23.0.2/aapt'' finished non-zero exit value 42
:app:mergedebugresources failed
error:execution failed task ':app:mergedebugresources'. /users/slyinstinct/documents/appprojects/androidstudioprojects/techgadgets/app/src/main/res/drawable/butler.png: error: com.android.ide.common.process.processexception: org.gradle.process.internal.execexception: process 'command '/users/slyinstinct/library/android/sdk/build-tools/23.0.2/aapt'' finished non-zero exit value 42 here main activity java
package net.androidbootcamp.techgadgets; import android.app.listactivity; import android.content.intent; import android.net.uri; import android.os.bundle; import android.view.view; import android.widget.arrayadapter; import android.widget.listview; public class mainactivity extends listactivity{ @override protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); string [] tech ={"self driving car", "bionic butler", "jetpack", "robot dogs", "virtual reality"}; setlistadapter(new arrayadapter<string>(this, android.r.layout.simple_list_item_1, tech)); } protected void onlistitemclick(listview l, view v, int position, long id) { switch(position){ case 0: startactivity(new intent(intent.action_view, uri.parse("https://www.google.com/selfdrivingcar/"))); break; case 1: startactivity(new intent(intent.action_view, uri.parse("https://en.wikipedia.org/wiki/artificial_intelligence"))); break; case 2: startactivity(new intent(intent.action_view, uri.parse("http://www.martinjetpack.com/"))); break; case 3: startactivity(new intent(intent.action_view, uri.parse("http://www.bostondynamics.com/robot_bigdog.html"))); break; case 4: startactivity(new intent(intent.action_view, uri.parse("https://www.oculus.com/en-us/"))); break; } } }
here logcat
03-06 19:59:16.970 1296-1296/? e/locationmanagerservice: no geocoder provider found 03-06 19:59:16.970 1296-1296/? e/flphardwareprovider: error hw_get_module 'flp': -2 03-06 19:59:16.970 1296-1296/? e/locationmanagerservice: flp hal not supported 03-06 19:59:16.970 1296-1296/? w/servicewatcher: com.google.android.location not found 03-06 19:59:16.970 1296-1296/? e/locationmanagerservice: unable bind flp geofence proxy. 03-06 19:59:16.970 1296-1296/? e/activityrecognitionhardware: error hw_get_module: -2 03-06 19:59:16.970 1296-1296/? e/locationmanagerservice: hardware activity-recognition not supported. 03-06 19:59:16.970 1296-1313/? e/gpslocationprovider: no agps interface in set_agps_server 03-06 19:59:16.990 1296-1296/? i/commontimemanagementservice: no common time service detected on platform. common time services unavailable. 03-06 19:59:16.990 1296-1296/? i/mmsservicebroker: connecting mmsservice 03-06 19:59:16.990 1296-1296/? w/contextimpl: calling method in system process without qualified user: android.app.contextimpl.bindservice:1750 com.android.server.mmsservicebroker.tryconnecting:134 com.android.server.mmsservicebroker.systemrunning:121 com.android.server.systemserver$2.run:1182 com.android.server.am.activitymanagerservice.systemready:11326 03-06 19:59:16.990 1296-1331/? i/inputreader: reconfiguring input devices. changes=0x00000030 03-06 19:59:17.000 1419-1419/? e/sqlitelog: (283) recovered 30 frames wal file /data/data/com.android.providers.media/databases/external.db-wal
Comments
Post a Comment