代码之家  ›  专栏  ›  技术社区  ›  user763539

Android在“Aligning Project1.dpk”上冻结

  •  0
  • user763539  · 技术社区  · 6 年前

    我正在编译一个连接了电话的Android应用程序。 但是,在手机上查看应用程序之前,它会突然冻结。 (关于调整project1.dpk)并启动android sdk管理器。 我从Android工具中安装了所有东西,所以我不知道为什么经理会出现。当我关闭管理器时,它会显示一条警告消息:

    enter image description here

    但是,当我查看正在运行的进程时,adb.exe(32位)已经在运行!!). 我已经安装了Android SDK工具25.2.25。 还有Android SDK平台工具28.0.0。 我也安装了安卓9(API 28)下的所有东西。 谷歌的USB驱动程序也安装了。 检查sdk路径似乎一切正常:

    enter image description here

    所以在我精神崩溃之前,有人能告诉我这里有什么问题吗?为什么我在电话上看不到申请表? 在手机上,我启用了USB调试。还启用了通过USB安装。

    1 回复  |  直到 6 年前
        1
  •  3
  •   Dalija Prasnikar    6 年前

    您的SDK路径设置不正确。

    ZipAlign入口指向sdkmanager.exe,而不是ZipAlign.exe。

    正确的路径设置应该是(附加到基本SDK路径)

    ZipAlign location (other build tools versions besides 28.0.3 can be used)
    \build-tools\28.0.3\zipalign.exe
    
    Android location
    \tools\Android.bat
    
    Adb location
    \platform-tools\Adb.exe
    
    Aapt location
    \build-tools\28.0.3\aapt.exe
    
    SDK API level location (it does not have to be 28)
    \platforms\android-28