android studio 编译myclass报错?

android studio编译bao'cuo
```Error:Gradle: A problem occurred configuring root project 'SockWord'.

Could not resolve all dependencies for configuration ':classpath'.
Could not find com.android.tools:common:25.3.3.
Searched in the following locations:
https://jcenter.bintray.com/com/android/tools/common/25.3.3/common-25.3.3.pom
https://jcenter.bintray.com/com/android/tools/common/25.3.3/common-25.3.3.jar
Required by:
project : > com.android.tools.build:gradle:2.3.3 > com.android.tools.build:gradle-core:2.3.3 > com.android.tools.build:builder:2.3.3
project : > com.android.tools.build:gradle:2.3.3 > com.android.tools.build:gradle-core:2.3.3 > com.android.tools.build:builder:2.3.3 > com.android.tools.build:manifest-merger:25.3.3
project : > com.android.tools.build:gradle:2.3.3 > com.android.tools.build:gradle-core:2.3.3 > com.android.tools.build:builder:2.3.3 > com.android.tools.ddms:ddmlib:25.3.3
project : > com.android.tools.build:gradle:2.3.3 > com.android.tools.build:gradle-core:2.3.3 > com.android.tools.build:builder:2.3.3 > com.android.tools.analytics-library:shared:25.3.3
project : > com.android.tools.build:gradle:2.3.3 > com.android.tools.build:gradle-core:2.3.3 > com.android.tools.build:builder:2.3.3 > com.android.tools.analytics-library:tracker:25.3.3
project : > com.android.tools.build:gradle:2.3.3 > com.android.tools.build:gradle-core:2.3.3 > com.android.tools.build:builder:2.3.3 > com.android.tools:sdklib:25.3.3 > com.android.tools.layoutlib:layoutlib-api:25.3.3
project : > com.android.tools.build:gradle:2.3.3 > com.android.tools.build:gradle-core:2.3.3 > com.android.tools.build:builder:2.3.3 > com.android.tools:sdklib:25.3.3 > com.android.tools:dvlib:25.3.3
project : > com.android.tools.build:gradle:2.3.3 > com.android.tools.build:gradle-core:2.3.3 > com.android.tools.build:builder:2.3.3 > com.android.tools:sdklib:25.3.3 > com.android.tools:repository:25.3.3

1个回答

依赖包有问题,看下com.android.tools:common:25.3.3所在的包

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
android studio编译过程中报错
Error:A problem occurred configuring project ':app'. > Could not resolve all dependencies for configuration ':app:_debugCompile'.    > Could not find any matches for com.android.support:appcompat-v7
Android Studio编译reactNative项目时报错
Process 'command 'E:\ndk-bundle\ndk-build.cmd'' finished with non-zero exit value 2
Android studio 降低编译版本报错
开发过程中需要降低编译版本,我从25降低到23的时候报错rnrn以下是错误信息:rnrnD:\Project\EWATERSYS-APP\EWATERSYS-AndroidV1.0\Development\EwaterAndroid\app\build\intermediates\res\merged\debug\values\values.xmlrnError:(629) Attribute "radius" has already been definedrnError:(629) Attribute "radius" has already been definedrnD:\Project\EWATERSYS-APP\EWATERSYS-AndroidV1.0\Development\EwaterAndroid\app\build\intermediates\res\merged\debug\values-v24\values-v24.xmlrnError:(3) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'.rnError:(4) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Colored'.rnError:(3) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'.rnError:(4) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Colored'.rnError:Execution failed for task ':app:processDebugResources'.rn> com.android.ide.common.process.ProcessException: Failed to execute aaptrnrn以下是我的gradle配置:rnrnandroid rnrn compileSdkVersion 23rn buildToolsVersion "23.0.2"rnrn defaultConfig rn applicationId "com.ewater.test.ewatersys"rn minSdkVersion 16rn targetSdkVersion 23rn versionCode 1rn versionName '1.0'rnrn multiDexEnabled true // 启用multiDex支持。rn multiDexKeepProguard file('multiDexKeep.pro') // keep specific classes using proguard syntaxrn multiDexKeepFile file('multiDexKeep.txt') // keep specific classesrn rnrn buildTypes rn release rn minifyEnabled falsern proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'rn rn rnrn packagingOptions rn exclude '*.apk'rn rnrn dexOptions rn jumboMode truern javaMaxHeapSize "4g"rn rnrn lintOptions rn abortOnError falsern rnrn signingConfigs rn release rn storeFile file("JPD.jks")rn storePassword "mediaplatform"rn keyAlias "mediaplatform"rn keyPassword "mediaplatform"rn v2SigningEnabled falsern rn rnrnrnrndependencies rn compile fileTree(include: ['*.jar'], dir: 'libs')rn compile project(':chartlibrary')rn compile project(':ui')rn compile files('libs/BaiduLBS_Android.jar')rn compile files('libs/BaiduTraceSDK_v3_0_1.jar')rn compile files('libs/bos-android-sdk-1.0.2.jar')rn compile files('libs/pinyin4j-2.5.0.jar')rn compile files('libs/INetSDK.jar')rn compile files('libs/IPlaySDK.jar')rn compile files('libs/libToUProxy.jar')rn compile 'com.android.support:design:25.1.0'rn compile 'com.android.support:multidex:1.0.0'rn compile 'com.android.support:support-v4:25.1.0'rn compile 'com.android.support:recyclerview-v7:25.1.0'rn compile 'com.facebook.rebound:rebound:0.3.8'rn compile 'com.mylhyl:zxingscanner:1.2.1'rn compile 'com.mylhyl:commonrefreshlayout:1.0'rn compile 'com.tencent.mm.opensdk:wechat-sdk-android-with-mta:1.0.2'rn compile 'com.android.support.constraint:constraint-layout:1.0.2'rn compile 'com.jakewharton:butterknife:8.8.1'rn testCompile 'junit:junit:4.12'rnrn请教大神该怎么解决。rn
Android Studio报错,好像也编译不了
好像是res文件夹下有问题, 但是我检查了 没事啊,请大神指教!!!nError:Execution failed for task ':app:mergeDebugResources'.n> Some file crunching failed, see logs for details![图片说明](https://img-ask.csdn.net/upload/201604/17/1460866063_379984.png)
Android studio运行工程报错,编译通过
碰到很奇怪的问题,编译工程时没有问题,run的时候就报错了rnrnFAILURE: Build failed with an exception.rnrn* What went wrong:rnExecution failed for task ':app:dexDebug'.rn> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.8.0\bin\java.exe'' finished with non-zero exit value 1rnrn* Try:rnRun with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.rnrnBUILD FAILEDrnrnrn也查了很多方法,重装过java,也改过dexOptions把javaMaxHeapSize设为4G以上的大小,都没用rnrn也不应该是包重复的问题,已经两个星期没有添加新的包和dependencies了,一直都能正常运行rnrn希望讨论下解决方法
Android Studio查看源代码报错
我们经常用Android Studio 查看Android的源代码,今天我们就来学习查看源代码的正确姿势。Android Studio查看源代码我们用Android Studio查看源代码会遇到下面的问题。 这是由于Android SDK自带的Source源码包很小,并没有包括所有的Android Framework的源码,仅仅提供给应用开发参考用,一些比较少用的系统类的源码并没有给出。 “
Android studio启动时报错
防火墙设置让Android studio 可以通过即可
Android Studio运行时报错
一:Error:Execution failed for task ':app:_compileDebugJava'. > 找不到目录: E:\AndroidStudioProjects\example\app\build\generated\source\apt\debug 解决办法: 在E:\AndroidStudioProjects\example\app\build\gene
android studio初始化报错
解决引入报错 OpenCV error: Cannot load info library for OpenCV
android studio实时预览报错
[size=medium]安装android studio后新建一个project,activity_main.xml design标签,实时预览报错:android.content.res.Resources$NotFoundException: Unable to find resource ID #0x1080029 at 在project下,app->build,gradle(Mo...
android studio support_v7报错
![图片说明](https://img-ask.csdn.net/upload/201505/26/1432606673_471040.png)
android studio gradle 报错
我在用android studio导入从GITHUB上下的程序时出现下面的问题n![图片说明](https://img-ask.csdn.net/upload/201607/04/1467643622_746006.png)n并且上面运行的图标是灰色的![图片说明](https://img-ask.csdn.net/upload/201607/04/1467643822_529881.png)n不知道怎么解决了,在这里请教大家了,望赐教
Android Studio新建工程报错
[img=https://img-bbs.csdn.net/upload/201511/19/1447922888_703783.png][/img]rnrn如图. 启动AVD的时候失败 这是什么问题. 本人菜鸟一个. 搜了半天找不到rn另外想问问 一个工程 需要哪些对应 有时候还会遇到ADT 版本不对应 还有什么min
android studio运行时报错
刚遇到一个问题在Android studio编译的时候不会报错,但是运行的时候会报 Error:Execution failed for task ':video:transformClassesWithDexForDebug'. > com.android.build.api.transform.TransformException: com.android.ide.common.proce
Android Studio报错 java.lang.IllegalStateException
package com.example.q9722.biancheng1;nnimport android.media.Image;nimport android.support.v4.app.Fragment;nimport android.support.v4.view.ViewPager;nimport android.support.v7.app.AppCompatActivity;nimport android.os.Bundle;nimport android.view.View;nimport android.view.WindowManager;nimport android.widget.ImageView;nnimport java.util.ArrayList;nimport java.util.List;nnpublic class MainActivity extends AppCompatActivity implements View.OnClickListenern ViewPager mviewPager;n mFragmentAdapter madapter;n FragmentOne mone;n FragmentTwo mtwo;n FragmentThree mthree;n List mFragmentList;n ImageView[] mimageViews;n @Overriden protected void onCreate(Bundle savedInstanceState) n super.onCreate(savedInstanceState);n getSupportActionBar().hide();n getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,n WindowManager.LayoutParams.FLAG_FULLSCREEN);n setContentView(R.layout.activity_main);n initViews();n madapter = new mFragmentAdapter(getSupportFragmentManager(),mFragmentList);n mviewPager.setOffscreenPageLimit(3);n mviewPager.setAdapter(madapter);n mviewPager.setCurrentItem(0);n mimageViews[1].setImageResource(R.drawable.blue_circle);n mviewPager.setOnPageChangeListener(new ViewPager.OnPageChangeListener() n @Overriden public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) nn nn @Overriden public void onPageSelected(int position) n for(int i=0;i<3;i++) n mimageViews[i].setImageResource(R.drawable.write_circle);n n mimageViews[position].setImageResource(R.drawable.blue_circle);n nn @Overriden public void onPageScrollStateChanged(int state) nn n );n nn private void initViews() n mviewPager = (ViewPager) findViewById(R.id.viewpager);n mFragmentList = new ArrayList();n mone = new FragmentOne();n mtwo = new FragmentTwo();n mthree = new FragmentThree();n mFragmentList.add(mone);n mFragmentList.add(mtwo);n mFragmentList.add(mthree);n mimageViews = new ImageView[3];n mimageViews[0] = (ImageView) findViewById(R.id.iv1);n mimageViews[1] = (ImageView) findViewById(R.id.iv2);n mimageViews[2] = (ImageView) findViewById(R.id.iv3);n mimageViews[0].setOnClickListener(this);n mimageViews[1].setOnClickListener(this);n mimageViews[2].setOnClickListener(this);n nn @Overriden public void onClick(View v) n switch (v.getId()) n case R.id.iv1:n mviewPager.setCurrentItem(0,true);n break;n case R.id.iv2:n mviewPager.setCurrentItem(1,true);n break;n case R.id.iv3:n mviewPager.setCurrentItem(2,true);n break;n n nn
android studio新建工程报错
下面是第一行,还有一串AGPBI: {&quot;kind&quot;:&quot;error&quot;,&quot;text&quot;:&quot;Error retrieving parent for item: No resource found that matches the 根本原因,还是因为我们的jar包产生了冲突。因为是新建的工程,没有别的jar,所以不考虑重复。因为开始建立工程的buildtoolsversion没有,所以我降低了几个版本(28...
Android Studio 命令行报错
fing@fing:~/Android/Sdk/emulator$ emulator -avd Nexus_5X_API_27 Couldn’t statvfs() path: No such file or directory emulator: ERROR: x86 emulation currently requires hardware acceleration! Please ensur...
android studio 报错解决办法
android studio 报错: Your project path contains non-ASCII characters. This will most likely cause the build to fail on Windows. Please move your project to a different directory. See http://b.android.c...
Android Studio 新建工程报错
装好 Android Studio,直接用自带模板生成工程,生成后如图:rn[img=https://img-bbs.csdn.net/upload/201501/13/1421140601_489202.png][/img]rnrn请问是哪里的问题?、rnAndroid 支持库也装了、rnrn编译运行也没有问题、就是编辑器会有红色看着不爽、
android studio 报错:java.util.zip.ZipException
在将eclipse的项目迁移到android studio的过程中报如下的错:rnExecution failed for task ':chachong:transformClassesWithJarMergingForDebug'.rn> com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/nostra13/universalimageloader/cache/disc/DiskCache.classrnrn项目中用到的依赖:rndependencies rn compile fileTree(include: '*.jar', dir: 'libs')rn compile project(':PhotoSelector')rn compile project(':PullToRefresh-library')rn compile project(':uikit')rn compile project(':pickview')rn compile files('libs/glide-3.6.1.jar')rnrn其中PhotoSelector库中和uikit中用到了universalimageloader。rn困扰挺长时间了,请路过的大神指点迷津!
android studio编译异常处理
info: Could not find method renderscriptSupportMode() for arguments [true] on ProductFlavor_Decorated{name=main, dimension=null, minSdkVersion=ApiVersionImpl{mApiLevel=14, mCodename=’null’}, targetS
加快Android Studio 的编译
加快Android Studio 的编译 Aug 20, 2013Android Studio 用了这么久了,亮点就不说了,唯一蛋疼的就是编译很慢,而且在未更改任何代码的时候,点运行任然重新编译。 昨天 Google 了一下,找到以下两个讨论:http://www.reddit.com/r/androiddev/comments/1k3nb3/gradle_and_android_studio_
android studio 编译运行报错:
Cannot reload AVD list: cvc-enumeration-valid: Value ‘280dpi’ is not facet-valid with respect to enumeration ‘[ldpi, mdpi, tvdpi, hdpi, xhdpi, 400dpi, xxhdpi, 560dpi, xxxhdpi]’. It must be a value from
android studio编译异常解决
新导入的一个项目,编译一直报这个错误,后来发现是这里和文件的build文件不一样,改成一样就可以了
Android Studio 编译慢
Android Studio Gradle Build Runing很慢 10分钟以上 百度上的都试了 没有用 还 有什么好的解决方法吗
android studio 编译错误解决
android studio 导入工程时编译时报错 Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'. > com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate e
Android Studio 编译错误整理
Error:Execution failed for task ‘:app:transformClassesWithDexForDebug’. > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process ‘command ‘/usr/lib/jvm/java
Android Studio编译常见错误
Android Gradle Build Error:Some file crunching failed, see logs for details解决办法 在主工程文件夹下的build点gradle文件里,加两句: aaptOptions点cruncherEnabled = false aaptOptions点useNewCruncher = false 例如: ...
Android Studio 编译系统源码
环境配置 & 下载 参考文章 官方文档 湫水blog 清华镜像 调试 以下所有操作在mac上进行推荐下载 7.0及以上系统!!! 1.创建磁盘映像(80G)$ hdiutil create -type SPARSE -fs 'Case-sensitive Journaled HFS+' -size 80g ~/android.dmg 2.安装MacPorts (类似brew
安卓studio编译ndk报错
编译时报错如下: Error:Execution failed for task ‘:ReactAndroid:cleanReactNdkLib’. Process ‘command ‘E:\ndk\android-ndk-r10e\ndk-build.cmd” finished with non-zero exit value 2 在引入ndk目录路径的moudle的gradl
编译android 7.1报错
android版本:7.1编译android7.1遇到如下两个错误,记录一下:报错1:build/core/base_rules.mk:319: warning: ignoring old commands for target `out/target/product/rk3288/system/lib/libffmpeg_vp9dec.so'Starting build with ninjani...
MyClass A与MyClass A()的区别
class MyClass rn public:rn void f()cout<<"f()";rn MyClass()cout<<"OK";rn;rnrnMyClass a;rna.f();rn就能输出"OK,f()".rn而 MyClass b();rn没有"OK"输出,进入调试,看到MyClass b()没有调用MyClass的构造涵数。rn对b.f(),出错,说左值要是类。rnMyClass a和MyClass b()有何不同?rn多谢rn
android studio运行程序报错
报错详情:This version of Android Studio is incompatible with the Gradle Plugin used. Try disabling Instant Run 解决步骤: 1.确保没有使用run install功能。进入File->settings->build->install run,把右边打勾的选项都去掉,如图 2.切换到proj
Android Studio 图片报错问题
在app的  build.gradle里添加以下两句: defaultConfig中添加 aaptOptions.cruncherEnabled = false aaptOptions.useNewCruncher = false 这个可以关闭Android Studio的PNG合法性检查
Android Studio SDK报错解决方法
Android Studio的SDK是从dl.google.com上面下载的,所以有些地区会无法访问。解决方法是挂梯子,先确保能连通。 一开始安装会提示你要不要安装SDK和AVD,这两个都是从上述网站下载解压的,如果一开始没有下载到,会在之后启动AS提示你“无法连通网站 请设置代理”。这时候你设置SDK文件夹会提示你installed(其实并没有安装),找到一个空的文件夹,确认能正常连接到dl....
Android Studio的一些报错问题
1、Error:Execution failed for task ‘:app:mergeDebugResources’. F:\androidstudio_workspace\FragmentApplication\app\src\main\res\drawable_hdpi\actionbar_icon_msg.png:1:1: Error: 前言中不允许有内容。 解决办法:1、action
Android Studio真机安装报错
Android Studio安装应用时报错: 点击确认后,任然报错: 解决方法是:Android studio——>Preferences——>Build,Execution,Deployment>Instant Run然后去掉Enable Instant Run to hot swap的勾: 然后再选择:
Android studio报错,求助大神
E:\AndroidStudio\AndroidStudioworkspaces\MyApplication\okhttp\build\intermediates\res\merged\debug\values-v24\values-v24.xmlrnError:(3) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'.rnError:(4) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Colored'.rnError:Execution failed for task ':okhttp:processDebugResources'.rn> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'E:\AndroidStudio\android-sdk-r24.4.1\android-sdk-windows\build-tools\24.0.0\aapt.exe'' finished with non-zero exit value 1rnrn下面是values-v24.xml内容rnrnrn```rn rnrn rn <style name="Base.TextAppearance.AppCompat.Widget.Button.Colored" parent="android:TextAppearance.Material.Widget.Button.Colored"/>rn <style name="TextAppearance.AppCompat.Notification.Info.Media"/>rn <style name="TextAppearance.AppCompat.Notification.Media"/>rn <style name="TextAppearance.AppCompat.Notification.Time.Media"/>rn <style name="TextAppearance.AppCompat.Notification.Title.Media"/>rn</resources>rn```rn下面是gradle文件rnrnrn```rn apply plugin: 'com.android.application'rnrnandroid rn compileSdkVersion 24rn buildToolsVersion "24.0.0"rnrn defaultConfig rn applicationId "myapp.czw.com.ceshi"rn minSdkVersion 16rn targetSdkVersion 24rn versionCode 1rn versionName "1.0"rn rn buildTypes rn release rn minifyEnabled falsern proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'rn rn rnrnrndependencies rn compile fileTree(include: ['*.jar'], dir: 'libs')rn testCompile 'junit:junit:4.12'rn compile 'com.android.support:appcompat-v7:24.0.0'rn compile 'com.squareup.okhttp:okhttp:2.4.0'rn compile 'org.xutils:xutils:3.3.38'rn compile 'com.zhy:percent-support-extends:1.0.1'rn //百分比布局rn compile 'com.squareup.picasso:picasso:+'rn //圆形图片rn compile 'de.hdodenhof:circleimageview:2.1.0'rn compile 'fm.jiecao:jiecaovideoplayer:5.5'rnrnrn```rnrn
android studio values文件报错
![![![图片说明](https://img-ask.csdn.net/upload/201604/16/1460801771_859595.png)图片说明](https://img-ask.csdn.net/upload/201604/16/1460801762_137376.png)图片说明](https://img-ask.csdn.net/upload/201604/16/1460801751_773495.png)rn这种情况该怎么办?新建一个项目就这样。clean project和project struction还有tools-Android-sync project都试过了,是版本的问题吗?还是缺了什么东西?初学,望各位大神能解答!谢谢!
android studio 提交代码到github报错
具体报错信息: To https://github.com/AnAndroidXiang/CoolWeather.git  ! [rejected]        master -> master (fetch first) error: failed to push some refs to 'https://github.com/AnAndroidXiang/CoolWeather.gi
相关热词 c# 去空格去转义符 c#用户登录窗体代码 c# 流 c# linux 可视化 c# mvc 返回图片 c# 像素空间 c# 日期 最后一天 c#字典序排序 c# 截屏取色 c#中的哪些属于托管机制