我是android studio的新手,有人写了我制作的应用程序,最初用于app发明者.我按照他的模板添加了新的东西.该应用程序与Gradle有问题,并给我以下.
"Error:(3, 0) Plugin with id 'com.android.application' not found."
Run Code Online (Sandbox Code Playgroud)
它还说我没有安装我的额外Android支持存储库,但它是.一切都是最新的.我看到很多关于更新Gradle的事情,如果SDK管理器没有,我该怎么做.
代码是:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
apply plugin: 'com.android.application'
android {
compileSdkVersion 21
buildToolsVersion "21.0.2"
defaultConfig {
applicationId "contactorganizer.introcode.or.myapplication"
minSdkVersion 8
targetSdkVersion 21
versionCode 1
versionName "1.0"
}
buildTypes {
release {
runProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:21.0.0'
}
Run Code Online (Sandbox Code Playgroud)
抱歉没有太多的知识.如果您想要这个项目,我可以通过电子邮件发送给您,因为我完全没有线索,并且很乐意建立这个.谢谢你的帮助!
嗨,我最近在android studio中创建了一个项目,只是想将它推送到存储库.我之前已经拉过,但从未推过一个全新的,并没有找到一个好的教程这样做.每当我推送它将在Github或Bitbucket上创建一个Repository文件夹但从不推送任何文件.
我尝试同步Gradle的所有内容都会出现此错误.我正在使用SDK 21,我已安装所有更新.我尝试删除Value.xml,清理Gradle,同步它并尝试更改SDK版本.它仍然出现了.
这是出了什么问题
C:\Users\User\AndroidStudioProjects\MyApplication\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\21.0.0\res\values-v11\values.xml
Error:(36, 21) No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
Error:(36, 21) No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
Error:(36, 21) No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
Error:(36, 21) No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Body1'. …Run Code Online (Sandbox Code Playgroud) 我想在导航抽屉上创建一个分享按钮,当用户触摸按钮时,它将打开带有所有应用程序列表的黑色抽屉,用户可以共享Google Play链接.有没有通用的代码模板?我找到的唯一答案就是在一个应用程序上分享它,比如Facebook,这似乎没用,因为不是每个人都使用Facebook.
android ×4
gradle ×2
repository ×2
bitbucket ×1
drawer ×1
github ×1
navigation ×1
plugins ×1
resources ×1
share ×1