小编Mou*_*lil的帖子

Android:无法解决65k问题

我已经在这两天了.我尝试了所有与multi-dexing相关的解决方案,但无济于事.我删除了所有内容,以便我可以重新开始.

应用程序gradle:

apply plugin: 'com.android.application'
android {
          compileSdkVersion 21
          buildToolsVersion "21.1.2"
          defaultConfig {
          applicationId "com.bilboldev.joestrategy"
          minSdkVersion 15
          targetSdkVersion 21
          versionCode 1
          versionName "1.0"
          multiDexEnabled true
      }
buildTypes {
    release {
        minifyEnabled false

        proguardFiles getDefaultProguardFile('proguard-android.txt'),     'proguard-rules.pro'
      }
   }
}

dependencies {
compile 'com.android.support:multidex:1.0.1'
compile 'com.android.support:appcompat-v7:22.0.0'
compile 'com.google.android.gms:play-services-ads:9.0.0'
}

apply plugin: 'com.google.gms.google-services'
Run Code Online (Sandbox Code Playgroud)

项目gradle:

buildscript {
repositories {
    jcenter()
}
dependencies {
    classpath 'com.android.tools.build:gradle:1.1.0'
    classpath 'com.google.gms:google-services:3.0.0'

}
}



allprojects {
repositories {
    jcenter()
}
}
Run Code Online (Sandbox Code Playgroud)

里面最明显:

 <meta-data
    android:name="com.google.android.gms.version"
    android:value="@integer/google_play_services_version" />
 <application
    android:name="android.support.multidex.MultiDexApplication" ... …
Run Code Online (Sandbox Code Playgroud)

android android-gradle-plugin

7
推荐指数
1
解决办法
268
查看次数

Powershell说存储帐户不存在

在powershell中,我通过调用上下文来验证它是否存在.

New-AzureStorageContext -StorageAccountName "testdisks401" -StorageAccountKey "...."
Run Code Online (Sandbox Code Playgroud)

结果

StorageAccountName : testdisks401
BlobEndPoint       : https://testdisks401.blob.core.windows.net/
TableEndPoint      : https://testdisks401.table.core.windows.net/
QueueEndPoint      : https://testdisks401.queue.core.windows.net/
FileEndPoint       : https://testdisks401.file.core.windows.net/
Context            : Microsoft.WindowsAzure.Commands.Common.Storage.AzureStorageContext
Name               :
StorageAccount     : BlobEndpoint=https://testdisks401.blob.core.windows.net/;QueueEndpoint=https://testdisks401.queue.core.windows.net/;TableEndpoint=https://testdi
                 sks401.table.core.windows.net/;FileEndpoint=https://testdisks401.file.core.windows.net/;AccountName=testdisks401;AccountKey=[key hidden]
EndPointSuffix     : core.windows.net/
Run Code Online (Sandbox Code Playgroud)

当我尝试在这里设置它时:

Set-AzureSubscription -SubscriptionName 'XXXX' -CurrentStorageAccount "testdisks401"
Run Code Online (Sandbox Code Playgroud)

我明白了

Set-AzureSubscription : ResourceNotFound: The storage account 'testdisks401' was not found.
At line:1 char:1
+ Set-AzureSubscription -SubscriptionName 'XXX
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : CloseError: (:) [Set-AzureSubscription], CloudException
+ FullyQualifiedErrorId : Microsoft.WindowsAzure.Commands.Profile.SetAzureSubscriptionCommand
Run Code Online (Sandbox Code Playgroud)

被困了好一阵子.我基本上想编写一个shellcript来从现有的操作系​​统光盘创建一个VM.我设法使用powershell创建现有光盘的副本(使用第一个命令的上下文使其工作).但现在我正在尝试使用以下方法创建VM配置:

 $vmI1 = New-AzureVMConfig -Name "TestRecover" -InstanceSize Small …
Run Code Online (Sandbox Code Playgroud)

powershell azure azure-storage azure-powershell

4
推荐指数
1
解决办法
2920
查看次数