我正在尝试创建一个无符号的apk,我可以在内部共享以进行测试。在Android Studio上,我执行了以下操作:
构建成功,并显示以下消息:
按需配置是一项孵化功能。 :应用程序:预生成 最新消息:app:preDebugBuild UP-TO-DATE:app:checkDebugManifest :app:preReleaseBuild UP-TO-DATE:volley:compileLint :volley:copyReleaseLint UP-TO-DATE:volley:mergeReleaseProguardFiles UP-TO-DATE:排球:preBuild UP-TO-DATE:排球:preReleaseBuild 最新消息:齐射:checkReleaseManifest :volley:prepareReleaseDependencies:volley:compileReleaseAidl UP-TO-DATE:凌空:compileReleaseRenderscript UP-TO-DATE :volley:generateReleaseBuildConfig UP-TO-DATE :volley:generateReleaseAssets UP-TO-DATE:volley:mergeReleaseAssets UP-TO-DATE:凌空:generateReleaseResValues UP-TO-DATE :volley:generateReleaseResources UP-TO-DATE :volley:packageReleaseResources UP-TO-DATE :volley:processReleaseManifest UP-TO-DATE :volley:processReleaseResources UP-TO-DATE :volley:generateReleaseSources UP-TO-DATE :volley:processReleaseJavaRes UP-TO-DATE :volley:compileReleaseJavaWithJavac UP-TO-DATE :volley:packageReleaseJar UP-TO-DATE:volley:compileReleaseNdk UP-TO-DATE:凌空:packageReleaseJniLibs UP-TO-DATE :volley:packageReleaseLocalJar UP-TO-DATE :volley:packageReleaseRenderscript UP-TO-DATE:volley:bundleRelease UP-TO-DATE:app:prepareBluetoothGattVolleyUnspecifiedLibrary 最新消息:app:prepareComAndroidSupportAppcompatV72301Library 最新消息:app:prepareComAndroidSupportDesign2301Library UP-TO-DATE :app:prepareComAndroidSupportSupportV42301Library UP-TO-DATE :app:prepareDebugDependencies:app:compileDebugAidl UP-TO-DATE :app:compileDebugRenderscript UP-TO-DATE:app:generateDebugBuildConfig UP-TO-DATE:app:generateDebugAssets UP-TO-DATE:app:mergeDebugAssets UP-TO-DATE:app:generateDebugResValues UP-TO-DATE :app:generateDebugResources UP-TO-DATE:app:mergeDebugResources 最新消息:app:processDebugManifest UP-TO-DATE :app:processDebugResources UP-TO-DATE:app:generateDebugSources 最新版本:app:preDebugAndroidTestBuild UP-TO-DATE :应用:prepareDebugAndroidTestDependencies :app:compileDebugAndroidTestAidl UP-TO-DATE :app:processDebugAndroidTestManifest UP-TO-DATE :app:compileDebugAndroidTestRenderscript UP-TO-DATE :app:generateDebugAndroidTestBuildConfig UP-TO-DATE :app:generateDebugAndroidTestAssets UP-TO-DATE :app:mergeDebugAndroidTestAssets UP-TO-DATE :app:generateDebugAndroidTestResValues UP-TO-DATE :app:generateDebugAndroidTestResources UP-TO-DATE :app:mergeDebugAndroidTestResources UP-TO-DATE :app:processDebugAndroidTestResources UP-TO-DATE :app:generateDebugAndroidTestSources UP-TO-DATE :app:processDebugJavaRes UP-TO-DATE:app:compileDebugJavaWithJavac 最新消息:app:compileDebugNdk UP-TO-DATE:app:compileDebugSources 最新消息:app:processDebugAndroidTestJavaRes UP-TO-DATE :app:compileDebugAndroidTestJavaWithJavac UP-TO-DATE :app:compileDebugAndroidTestNdk UP-TO-DATE :app:compileDebugAndroidTestSources UP-TO-DATE:volley:preDebugBuild 最新日期:排球:checkDebugManifest:排球:prepareDebugDependencies :volley:compileDebugAidl UP-TO-DATE:volley:compileDebugRenderscript UP-TO-DATE:排球:generateDebugBuildConfig UP-TO-DATE :volley:generateDebugAssets UP-TO-DATE:volley:mergeDebugAssets UP-TO-DATE:凌空:generateDebugResValues UP-TO-DATE :volley:generateDebugResources UP-TO-DATE :volley:packageDebugResources UP-TO-DATE:volley:processDebugManifest UP-TO-DATE:凌空:processDebugResources UP-TO-DATE :volley:generateDebugSources UP-TO-DATE :volley:preDebugAndroidTestBuild UP-TO-DATE :凌空:prepareDebugAndroidTestDependencies :volley:compileDebugAndroidTestAidl UP-TO-DATE:volley:copyDebugLint UP-TO-DATE:凌空:mergeDebugProguardFiles UP-TO-DATE :volley:processDebugJavaRes UP-TO-DATE :volley:compileDebugJavaWithJavac UP-TO-DATE:volley:packageDebugJar UP-TO-DATE:凌空:compileDebugNdk UP-TO-DATE :volley:packageDebugJniLibs UP-TO-DATE:volley:packageDebugLocalJar UP-TO-DATE:凌空:packageDebugRenderscript UP-TO-DATE :volley:bundleDebug UP-TO-DATE:volley:compileDebugSources UP-TO-DATE :volley:assembleDebug UP-TO-DATE :volley:processDebugAndroidTestManifest UP-TO-DATE :volley:compileDebugAndroidTestRenderscript UP-TO-DATE :volley:generateDebugAndroidTestBuildConfig UP-TO-DATE :volley:generateDebugAndroidTestAssets UP-TO-DATE :volley:mergeDebugAndroidTestAssets UP-TO-DATE :volley:generateDebugAndroidTestResValues UP-TO-DATE :volley:generateDebugAndroidTestResources UP-TO-DATE :volley:mergeDebugAndroidTestResources UP-TO-DATE :volley:processDebugAndroidTestResources UP-TO-DATE :volley:generateDebugAndroidTestSources UP-TO-DATE :volley:processDebugAndroidTestJavaRes UP-TO-DATE :volley:compileDebugAndroidTestJavaWithJavac UP-TO-DATE :volley:compileDebugAndroidTestNdk UP-TO-DATE :volley:compileDebugAndroidTestSources UP-TO-DATE
建立成功
总时间:3.739秒
但是,我无法找到apk。我试着查看我项目的app / outputs目录,但是该目录只有一个名为logs /的文件夹而没有其他文件夹。任何建议都会有所帮助。
答案 0 :(得分:0)
make project不会创建一个未签名的apk。我犯了同样的错误你可以做的是使用gradle构建unsigned apk。只需按照以下步骤操作(您可以比我输入步骤更快):
将运行按钮更改为通过adb运行您的应用只需再次点击步骤1中的下拉按钮,然后选择“应用”
另请注意,您无法在物理设备上安装未签名的APK。无论你是通过电子邮件发送apk,还是通过usb将其复制到手机存储,还是任何其他方法都不允许你安装它。您需要创建一个签名的apk(非常简单)或将每个测试设备连接到您的计算机并通过adb安装。