0
Follow the project settings:
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.3.0'
}
}
allprojects {
repositories {
jcenter()
}
}
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion '23.0.2'
defaultConfig {
applicationId "com.mobile"
minSdkVersion 14
targetSdkVersion 23
versionCode 1
versionName "1.0.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
repositories {
maven {
url "http://mylibs:8081/nexus/content/repositories/releases/"
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.google.android.gms:play-services-location:8.3.0'
compile 'com.squareup.okhttp:okhttp:2.6.0'
compile 'com.squareup.okio:okio:1.6.0'
compile 'com.google.code.gson:gson:2.4'
compile 'com.android.support:design:23.1.1'
compile 'com.android.support:percent:23.1.1'
compile 'com.google.protobuf:protobuf-java:2.4.1'
compile 'com.android.support:cardview-v7:23.1.1'
compile 'com.android.support:recyclerview-v7:23.1.1'
compile 'com.google.android.gms:play-services-gcm:8.3.0'
compile ('com.library:okhttpmodel:0.0.1'){force =true}
}
Manifset
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.mobile" >
<!-- To access Google+ APIs: -->
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.USE_CREDENTIALS" /> <!-- To retrieve the account name (email) as part of sign-in: -->
<uses-permission android:name="android.permission.GET_ACCOUNTS" /> <!-- To auto-complete the email text field in the login form with the user's emails -->
<uses-permission android:name="android.permission.READ_PROFILE" />
<uses-permission android:name="android.permission.READ_CONTACTS" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<!--uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /-->
<uses-permission android:name="com.google.android.gms.permission.ACTIVITY_RECOGNITION" />
<!--action android:name="android.location.PROVIDERS_CHANGED" /-->
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="com.google.android.c2dm.permission.SEND" />
<uses-permission android:name="com.mobile.permission.C2D_MESSAGE" />
<application
android:name="com.mobile.UIApplication"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:screenOrientation="portrait"
android:theme="@style/AppTheme" >
<receiver
android:name="com.mobile.services.GcmBroadcastReceiver"
android:permission="com.google.android.c2dm.permission.SEND">
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
<category android:name=“com.mobile.application.AutoApplication" />
</intent-filter>
</receiver>
<service android:name="com.mobile.services.NotificationService" />
<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
<activity
android:name="com.mobile.MainActivity"
android:label="@string/app_name"
android:screenOrientation="portrait" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>
<activity
android:name="com.mobile.LaunchActivity"
android:label="@string/app_name"
android:screenOrientation="portrait" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.mobile.LoginActivity"
android:label="@string/login_label_title"
android:excludeFromRecents="true"
android:noHistory="true"
android:screenOrientation="portrait"
android:theme="@style/Theme.AppCompat.Light.NoActionBar"
android:windowSoftInputMode="stateAlwaysHidden|adjustPan" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<!-- <category android:name="android.intent.category.LAUNCHER" /> -->
</intent-filter>
</activity>
<activity
android:name="com.mobile.SignUpActivity"
android:label="@string/sign_up_label_title"
android:screenOrientation="portrait"
android:theme="@style/Theme.AppCompat.Light.NoActionBar"
android:windowSoftInputMode="stateAlwaysHidden|adjustPan" >
</activity>
<activity
android:name="com.mobile.TripActivity"
android:label="@string/new_trip_action"
android:screenOrientation="portrait"
android:theme="@style/Theme.AppCompat.Light.NoActionBar" >
</activity>
<service
android:name=“com.mobile.receivers.ActivityReceiver"
android:exported="false" />
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value=“XXXXXXXXXXXXXXXX" />
<activity
android:name="com.mobile.CalibrateActivity"
android:excludeFromRecents="true"
android:launchMode="singleInstance"
android:noHistory="true"
android:theme="@style/Theme.UserDialog" >
</activity>
<activity
android:name=“com.mobile.ForgotPasswordActivity"
android:excludeFromRecents="false"
android:label="@string/title_forgot_password"
android:noHistory="false"
android:screenOrientation="portrait"
android:theme="@style/Theme.AppCompat.Light.NoActionBar"
android:windowSoftInputMode="stateAlwaysHidden|adjustResize" >
</activity>
<activity
android:name=“com.mobile.LastTripMapActivity"
android:label="@string/title_activity_last_trip_map" >
</activity>
<activity
android:name=".ChangePasswordActivity"
android:excludeFromRecents="true"
android:launchMode="singleInstance"
android:noHistory="true"
android:theme="@style/Theme.UserDialog" >
</activity>
<receiver android:name=“com.mobile.receivers.PhoneCallReceiver" >
<intent-filter>
<action android:name="android.intent.action.PHONE_STATE" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.NEW_OUTGOING_CALL" />
</intent-filter>
</receiver>
<receiver android:name=“com.mobile.receivers.NetWorkChangeReceiver" >
<intent-filter>
<action android:name="android.net.conn.CONNECTIVITY_CHANGE" />
</intent-filter>
</receiver>
</application>
</manifest>
When I try to build, the following error occurs:
08:20:43.742 [ERROR] [org.gradle.BuildExceptionReporter]
08:20:43.743 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception.
08:20:43.744 [ERROR] [org.gradle.BuildExceptionReporter]
08:20:43.744 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
08:20:43.744 [ERROR] [org.gradle.BuildExceptionReporter] Execution failed for task ':app:processDebugManifest'.
08:20:43.744 [ERROR] [org.gradle.BuildExceptionReporter] > Conversion = '2'
08:20:43.744 [ERROR] [org.gradle.BuildExceptionReporter]
08:20:43.744 [ERROR] [org.gradle.BuildExceptionReporter] * Exception is:
08:20:43.745 [ERROR] [org.gradle.Buildexceptionreporter] org.gradle.api.tasks.Taskexecutionexception: Execution failed for task ':app:processDebugManifest'. 08:20:43.745 [ERROR] [org.gradle.Buildexceptionreporter] at org.gradle.api.internal.tasks.execution.Executeactionstaskexecuter.executeActions(Executeactionstaskexecuter.java:69) 08:20:43.745 [ERROR] [org.gradle.Buildexceptionreporter] at org.gradle.api.internal.tasks.execution.Executeactionstaskexecuter.execute(Executeactionstaskexecuter.java:46) 08:20:43.745 [ERROR] [org.gradle.Buildexceptionreporter] at org.gradle.api.internal.tasks.execution.Postexecutionanalysistaskexecuter.execute(Postexecutionanalysistaskexecuter.java:35) 08:20:43.746 [ERROR] [org.gradle.Buildexceptionreporter] at org.gradle.api.internal.tasks.execution.Skipuptodatetaskexecuter.execute(Skipuptodatetaskexecuter.java:64) 08:20:43.746 [ERROR] [org.gradle.Buildexceptionreporter] at org.gradle.api.internal.tasks.execution.Validatingtaskexecuter.execute(Validatingtaskexecuter.java:58) 08:20:43.746 [ERROR] [org.gradle.Buildexceptionreporter] at org.gradle.api.internal.tasks.execution.Skipemptysourcefilestaskexecuter.execute(Skipemptysourcefilestaskexecuter.java:42) 08:20:43.746 [ERROR] [org.gradle.Buildexceptionreporter] at org.gradle.api.internal.tasks.execution.Skiptaskwithnoactionsexecuter.execute(Skiptaskwithnoactionsexecuter.java:52) 08:20:43.746 [ERROR] [org.gradle.Buildexceptionreporter] at org.gradle.api.internal.tasks.execution.Skiponlyiftaskexecuter.execute(Skiponlyiftaskexecuter.java:53) 08:20:43.746 [ERROR] [org.gradle.Buildexceptionreporter] at org.gradle.api.internal.tasks.execution.Executeatmostoncetaskexecuter.execute(Executeatmostoncetaskexecuter.java:43) 08:20:43.746 [ERROR] [org.gradle.Buildexceptionreporter] at org.gradle.api.internal.Abstracttask.executeWithoutThrowingTaskFailure(Abstracttask.java:310) 08:20:43.747 [ERROR] [org.gradle.Buildexceptionreporter] at org.gradle.Execution.taskgraph.Abstracttaskplanexecutor$Taskexecutorworker.executeTask(Abstracttaskplanexecutor.java:79) 08:20:43.747 [ERROR] [org.gradle.Buildexceptionreporter] at org.gradle.Execution.taskgraph.Abstracttaskplanexecutor$Taskexecutorworker.processTask(Abstracttaskplanexecutor.java:63) 08:20:43.747 [ERROR] [org.gradle.Buildexceptionreporter] at org.gradle.Execution.taskgraph.Abstracttaskplanexecutor$Taskexecutorworker.run(Abstracttaskplanexecutor.java:51) 08:20:43.747 [ERROR] [org.gradle.Buildexceptionreporter] at org.gradle.Execution.taskgraph.Defaulttaskplanexecutor.process(Defaulttaskplanexecutor.java:23) 08:20:43.747 [ERROR] [org.gradle.Buildexceptionreporter] at org.gradle.Execution.taskgraph.Defaulttaskgraphexecuter.execute(Defaulttaskgraphexecuter.java:88) 08:20:43.747 [ERROR] [org.gradle.Buildexceptionreporter] at org.gradle.Execution.SelectedTaskExecutionAction.execute(Selectedtaskexecutionaction.java:37) 08:20:43.747 [ERROR] [org.gradle.Buildexceptionreporter] at org.gradle.Execution.DefaultBuildExecuter.execute(Defaultbuildexecuter.java:62) 08:20:43.747 [ERROR] [org.gradle.Buildexceptionreporter] at org.gradle.Execution.DefaultBuildExecuter.access$200(Defaultbuildexecuter.java:23) 08:20:43.748 [ERROR] [org.gradle.Buildexceptionreporter] at org.gradle.Execution.Defaultbuildexecuter$2.proceed(Defaultbuildexecuter.java:68) 08:20:43.748 [ERROR] [org.gradle.Buildexceptionreporter] at org.gradle.Execution.DryRunBuildExecutionAction.execute(Dryrunbuildexecutionaction.java:32) 08:20:43.748 [ERROR] [org.gradle.Buildexceptionreporter] at org.gradle.Execution.DefaultBuildExecuter.execute(Defaultbuildexecuter.java:62) 08:20:43.748 [ERROR] [org.gradle.Buildexceptionreporter] at org.gradle.Execution.DefaultBuildExecuter.execute(Defaultbuildexecuter.java:55) 08:20:43.748 [ERROR] [org.gradle.Buildexceptionreporter] at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(Defaultgradlelauncher.java:149) 08:20:43.748 [ERROR] [org.gradle.Buildexceptionreporter] at org.gradle.initialization.DefaultGradleLauncher.doBuild(Defaultgradlelauncher.java:106) 08:20:43.748 [ERROR] [org.gradle.Buildexceptionreporter] at org.gradle.initialization.DefaultGradleLauncher.run(Defaultgradlelauncher.java:86) 08:20:43.748 [ERROR] [org.gradle.Buildexceptionreporter] at org.gradle.Launcher.exec.Inprocessbuildactionexecuter$Defaultbuildcontroller.run(Inprocessbuildactionexecuter.java:90) 08:20:43.749 [ERROR] [org.gradle.Buildexceptionreporter] at org.gradle.Tooling.internal.Provider.runner.Buildmodelactionrunner.run(Buildmodelactionrunner.java:54) 08:20:43.749 [ERROR] [org.gradle.Buildexceptionreporter] at org.gradle.Launcher.exec.Chainingbuildactionrunner.run(Chainingbuildactionrunner.java:35) 08:20:43.749 [ERROR] [org.gradle.Buildexceptionreporter] at org.gradle.Launcher.exec.Inprocessbuildactionexecuter.execute(Inprocessbuildactionexecuter.java:41) 08:20:43.749 [ERROR] [org.gradle.Buildexceptionreporter] at org.gradle.Launcher.exec.Inprocessbuildactionexecuter.execute(Inprocessbuildactionexecuter.java:28) 08:20:43.749 [ERROR] [org.gradle.Buildexceptionreporter] at org.gradle.Launcher.daemon.server.exec.Executebuild.doBuild(Executebuild.java:49) 08:20:43.749 [ERROR] [org.gradle.Buildexceptionreporter] at org.gradle.Launcher.daemon.server.exec.Buildcommandonly.execute(Buildcommandonly.java:36) 08:20:43.749 [ERROR] [org.gradle.Buildexceptionreporter] at org.gradle.Launcher.daemon.server.api.Daemoncommandexecution.proceed(Daemoncommandexecution.java:120) 08:20:43.749 [ERROR] [org.gradle.Buildexceptionreporter] at org.gradle.Launcher.daemon.server.exec.Watchfordisconnection.execute(Watchfordisconnection.java:37) 08:20:43.750 [ERROR] [org.gradle.Buildexceptionreporter] at org.gradle.Launcher.daemon.server.api.Daemoncommandexecution.proceed(Daemoncommandexecution.java:120) 08:20:43.750 [ERROR] [org.gradle.Buildexceptionreporter] at org.gradle.Launcher.daemon.server.exec.Resetdeprecationlogger.execute(Resetdeprecationlogger.java:26) 08:20:43.750 [ERROR] [org.gradle.Buildexceptionreporter] at org.gradle.Launcher.daemon.server.api.Daemoncommandexecution.proceed(Daemoncommandexecution.java:120) 08:20:43.750 [ERROR] [org.gradle.Buildexceptionreporter] at org.gradle.Launcher.daemon.server.exec.Requeststopifsingleuseddaemon.execute(Requeststopifsingleuseddaemon.java:34)'
Someone’s been through this?
You could post your Androidmanifest?
– Wakim
I edited! Thank you!
– Thiago Luiz Domacoski
Maybe it’s worth running the build with the flag
-info
, depending on your Variant build looks something like./gradlew :app:assembleDebug -info
. It will generate a very large log, but maybe it will help to find the cause of the problem.– Wakim