小编Sae*_*ani的帖子

google play services 8.4.0 - 找不到classes.jar - android studio

我运行或调试应用程序时遇到此错误,但是当我构建或清理项目时没有错误.这听起来很奇怪,但我浪费了4-5个小时来寻找这个,但没有任何帮助.错误:

Error:Execution failed for task ':app:compileDebugJavaWithJavac'.> java.io.FileNotFoundException: C:\Users\Saeed Jassani\Downloads\AppName\app\build\intermediates\exploded-aar\com.google.android.gms\play-services\8.4.0\jars\classes.jar (The system cannot find the path specified)
Run Code Online (Sandbox Code Playgroud)

build.gradle文件:

apply plugin: 'com.android.application'

android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
defaultConfig {
    applicationId "com.example.app"
    minSdkVersion 9
    targetSdkVersion 23
    versionCode 1
    versionName "1.0"
}
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.1.1'
compile 'com.android.support:recyclerview-v7:23.1.1'
compile 'com.android.support:design:23.1.1'
compile 'com.google.android.gms:play-services:8.4.0'
compile 'com.android.support:support-v4:23.1.1'
}
Run Code Online (Sandbox Code Playgroud)

android google-play-services android-gradle-plugin

12
推荐指数
1
解决办法
4237
查看次数

Hello World安卓应用的大小

我是android新手,当我创建一个简单的Hello World应用程序时,其大小约为900 KB.但我看到很多应用程序在游戏商店如Chain Reaction的大小只有200 KB.默认的Hello World应用程序是否包含一些我不需要的资源?如何删除它们?任何帮助将不胜感激.提前致谢.

java memory android memory-management

9
推荐指数
1
解决办法
401
查看次数

DropDownButton 和 DropDownMenuItem 的不同样式

我正在 Flutter 中创建以下注册表单。

在此处输入图片说明

TextStyle white =
    new TextStyle(color: Colors.white, decorationColor: Colors.white);
TextStyle grey =
    new TextStyle(color: Colors.grey, decorationColor: Colors.white);
Run Code Online (Sandbox Code Playgroud)

我想将白色样式应用于 DropDownButton,将灰色应用于 DropDownMenuItem。但是,DropDownMenu 项的样式也适用于 DDButton。

另外,我可以像 TextField 一样“match_parent” DropDownButton 的宽度(如图像中所示)吗?

这是代码:

     child: new Center(
      child: new ListView(
        shrinkWrap: true,
        padding: new EdgeInsets.only(left: 24.0, right: 24.0),
        children: <Widget>[
          new ListTile(
            leading: const Icon(
              Icons.language,
              color: Colors.white,
            ),
            title: new DropdownButton(
              items:
                  <String>['India', 'Australia', 'USA'].map((String value) {
                return new DropdownMenuItem<String>(
                  value: value,
                  child: new Text(value, ),
                );
              }).toList(),
              value: selected,
              onChanged: (String value) …
Run Code Online (Sandbox Code Playgroud)

dart flutter

9
推荐指数
1
解决办法
1万
查看次数

Android - FEATURE_NO_TITLE无效

我试图通过布局显示我的关于我们的页面,所以我不需要任何标题栏.我试过了:

Dialog d = new Dialog(this);
d.setContentView(R.layout.about_us);
d.setCanceledOnTouchOutside(true);
d.requestWindowFeature(android.view.Window.FEATURE_NO_TITLE);
d.show();
Run Code Online (Sandbox Code Playgroud)

但是当我点击菜单项时,它会强行关闭.当我评论上面代码的第三行时,它显示我的标题栏布局,我不需要.PS:我的活动扩展了ActionBarActivity,这是什么原因?如果是,那么我需要一个替代方案.

android dialog titlebar

2
推荐指数
1
解决办法
1641
查看次数