2017-07-14 67 views
-1

我想安裝apk的第一次在Raspberry Pi 3板上安裝了閃存.zip從Android的東西控制檯與空束捆綁下載。Android的事情與eth0和Wlan0連接,但無法安裝apk

現在我可以連接我的設備使用wifi IP地址分配給板。

所以我將它連接,如:

adb connect 10.xxx.x.xxx:5555 
connected to 10.xxx.x.xxx:5555 

我現在想安裝APK:

adb install D:\Project\xxx\xxx\app\build\outputs\ 
things_V01.apk 
Failed to install D:\Project\xxx\xxx\app\build\outputs\ 
things_V01.apk 

可能是什麼問題在這裏。

下面是我的應用程序的gradle。

apply plugin: 'com.android.application' 

android { 
    compileSdkVersion 25 
    buildToolsVersion "25.0.3" 
    defaultConfig { 
     applicationId "xx.xxxx.xxxx" 
     minSdkVersion 14 
     targetSdkVersion 25 
     versionCode 1 
     versionName "1.0" 
     testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 
    } 
    buildTypes { 
     release { 
      minifyEnabled false 
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
     } 
    } 
} 

dependencies { 
    compile fileTree(dir: 'libs', include: ['*.jar']) 
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { 
     exclude group: 'com.android.support', module: 'support-annotations' 
    }) 
    compile 'com.android.support:appcompat-v7:25.3.1' 
    compile 'com.android.support.constraint:constraint-layout:1.0.2' 
    provided 'com.google.android.things:androidthings:0.4.1-devpreview' 
    testCompile 'junit:junit:4.12' 
} 

此外還指出,在adb安裝命令後,它需要很多時間爲APK大小1.50MB的apk。

+1

你是否正在執行該命令,包括路徑中的換行符? –

+0

此外,應用程序是否已經存在,但簽名不同? –

+0

@AlexT。不,我不認爲它的新行只是由於Windows中cmd的大小。 – Herry

回答

0

作爲完整性檢查,您是否嘗試過使用另一個adb命令(如** adb **)與設備進行交互?