我试图在android studio中导入一个项目,但gradle构建失败了。我已经苦苦挣扎了几个小时,但还是无法使它工作。我该怎么办?
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.viatom.azur"
android:versionCode="16"
android:versionName="02.04.02" >
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
<uses-permission android:name="android.permission.INTERNET"></uses-permission>
<uses-permission android:name="android.permission.CHANGE_CONFIGURATION" />
<uses-sdk
android:minSdkVersion="12"
android:targetSdkVersion="21" />
<application
android:allowBackup="true"
android:icon="@drawable/icon"
android:label="@string/app_name"
android:theme="@style/AppBaseTheme" >
<activity
android:name="com.viatom.azur.activity.MainActivity"
android:label="@string/app_name"
android:configChanges="orientation|screenSize|fontScale|locale|layoutDirection">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.viatom.azur.activity.ECGMain"
android:label="@string/app_name"
android:configChanges="orientation|screenSize|fontScale|locale|layoutDirection">
</activity>
<activity
android:name="com.viatom.azur.activity.OtherInfo"
android:label="@string/app_name"
android:configChanges="orientation|screenSize|fontScale|locale|layoutDirection">
</activity>
<activity
android:name="com.viatom.azur.activity.ECGDetail"
android:label="@string/app_name"
android:configChanges="orientation|screenSize|fontScale|locale|layoutDirection" >
</activity>
<activity
android:name="com.viatom.azur.activity.ECGAnalyze"
android:label="@string/app_name"
android:configChanges="orientation|screenSize|fontScale|locale|layoutDirection"
android:screenOrientation="behind">
</activity>
<activity
android:name="com.viatom.azur.activity.DailyCheck"
android:label="@string/app_name"
android:configChanges="orientation|screenSize|fontScale|locale|layoutDirection">
</activity>
<activity
android:name="com.viatom.azur.activity.SPO2Main"
android:label="@string/app_name"
android:configChanges="orientation|screenSize|fontScale|locale|layoutDirection">
</activity>
<activity
android:name="com.viatom.azur.activity.TempMain"
android:label="@string/app_name"
android:configChanges="orientation|screenSize|fontScale|locale|layoutDirection">
</activity>
<activity
android:name="com.viatom.azur.activity.SLMMain"
android:label="@string/app_name"
android:configChanges="orientation|screenSize|fontScale|locale|layoutDirection" >
</activity>
<activity
android:name="com.viatom.azur.activity.SLMDetail"
android:label="@string/app_name"
android:configChanges="orientation|screenSize|fontScale|locale|layoutDirection">
</activity>
<activity
android:name="com.viatom.azur.activity.PedMain"
android:label="@string/app_name"
android:configChanges="orientation|screenSize|fontScale|locale|layoutDirection">
</activity>
<activity
android:name="com.viatom.azur.activity.AboutCheckme"
android:label="@string/app_name"
android:configChanges="orientation|screenSize|fontScale|locale|layoutDirection">
</activity>
<activity
android:name="com.viatom.azur.activity.AboutApp"
android:label="@string/app_name"
android:configChanges="orientation|screenSize|fontScale|locale|layoutDirection">
</activity>
<activity
android:name="com.viatom.azur.activity.SettingsActivity"
android:label="@string/app_name"
android:configChanges="orientation|screenSize|fontScale|locale|layoutDirection">
</activity>
<activity
android:name="com.viatom.azur.activity.Monitor"
android:label="@string/app_name"
android:configChanges="orientation|screenSize|fontScale|locale|layoutDirection">
</activity>
<activity
android:name="com.viatom.azur.activity.SpotCheck"
android:label="@string/app_name"
android:configChanges="orientation|screenSize|fontScale|locale|layoutDirection">
</activity>
<service android:name="com.viatom.azur.bluetooth.BTUtils">
<intent-filter>
<!-- 为该Service组件的intent-filter配置action -->
<action android:name="com.viatom.azur.BTUtils" />
</intent-filter>
</service>
<!-- 友盟统计 -->
<meta-data android:value="549a0bc4fd98c5dfb5000242" android:name="UMENG_APPKEY"></meta-data>
<meta-data android:value="Google Play" android:name="UMENG_CHANNEL"/>
</application>
apply plugin: 'com.android.application'
android {
compileSdkVersion 21
buildToolsVersion "23.0.2"
defaultConfig {
applicationId "com.viatom.azur"
minSdkVersion 12
targetSdkVersion 21
ndk {
moduleName "adpcm_docode"
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
dependencies {
compile project(':library')
compile project(':mPChartLib')
compile project(':swipeMenuListView')
compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar'
compile 'com.android.support:support-v4:21.0.0'
compile files('libs/umeng-analytics-v5.2.4.jar')
}
1:21:11 PM Executing tasks: [clean, :azurMobile:generateDebugSources, :azurMobile:generateDebugAndroidTestSources, :azurMobile:compileDebugSources, :azurMobile:compileDebugAndroidTestSources, :library:generateDebugSources, :library:generateDebugAndroidTestSources, :library:compileDebugSources, :library:compileDebugAndroidTestSources, :mPChartLib:generateDebugSources, :mPChartLib:generateDebugAndroidTestSources, :mPChartLib:compileDebugSources, :mPChartLib:compileDebugAndroidTestSources, :swipeMenuListView:generateDebugSources, :swipeMenuListView:generateDebugAndroidTestSources, :swipeMenuListView:compileDebugSources, :swipeMenuListView:compileDebugAndroidTestSources]
1:21:19 PM Gradle build finished with 1 error(s) in 8s 310ms
在清单文件中删除注释的其他语言代码
<!-- 为该Service组件的intent-filter配置action --> and <!-- 友盟统计 -->
然后生成
我最近更新了我的项目的gradle版本,从2.14.1到3.0。从那以后,gradle构建每次都失败,出现以下错误: 错误:原因:org.gradle.api.internal.tasks.defaultTaskinputs$TaskinputUnionFileCollection无法强制转换为org.gradle.api.internal.file.Collections.defaultConf
我从他们的github下载了gradle插件测试项目:https://github.com/gradle/gradle/tree/master/subprojects/docs/src/samples/customplugin 我还将gradle更新到了最新版本()。 当我项目时,我得到以下生成错误: > 错误:配置根项目“consumer”时出现问题。 无法解析配置“:classpath”的所有
我试图在Eclipse中构建一个包含两个模块的maven项目,一个是Java代码,另一个是flex代码。 安装的maven版本是3.3.9,jdk是JDK7_U80。 maven install-x命令给了我以下错误: [DEBUG]从ClassRealm[Project>Project.Project:prjt-flex:01.00.00,Parent:ClassRealm[maven.api,
com.android.ide.common.Process.processException:org.gradle.Process.internal.execexception:Process'command'd:\users\user4\appdata\local\android\sdk2\build-tools\21.1.2\aapt.exe''已完成,退出值为非零1
我试图在android studio模拟器上运行我的react原生项目,但当我构建它时,出现了这个错误: 任务“:App:SigningConfigWriterDebug”执行失败。accessDeniedException:d:\courses\reactNative-thePracticalGuide\myFirstApp\android\app\build\intermediates\sig
当我尝试构建Cordova Android应用程序时,它会以 环境变量是: ANDROID\u SDK\u ROOT-- 那么,您能帮我解决这个问题吗?请提前感谢:)