For me, the device was working just fine, but once while unity was building up the editor froze and I had to kill the unity editor, and when I started it again unity couldn’t recognize the device, and so after hours of struggling I finally find the solution.
first, identify the adb status of your device
go to the Android SDK path on your computer and under platform-tools open the cdm
and type the following
adb devices
for me, my device is there but its state is, unauthorized.
and so the solution was to authorize it again, there are many ways to do it:
1- try to switch the USB debugging option on and off under Developer options/Debugging
also, try to Revoke USB debugging authorizations.
the goal is to make the «authorize this computer» popup appear to update the status.
however; this didn’t work for me the popup didn’t appear, the solution to forcing the popup to show is as follow:
2- go again to platform-tools and open the cmd
type
where adb
Identify all the duplicate entries in the path. Remove duplicates.
Now do
adb kill-server
then
adb start-server
the popup should now appear, and the status of the device should be authorized.
credit to @user6123723
-
Ask a question
- Spaces
- Default
- Help Room
- META
- Moderators
-
- Topics
- Questions
- Users
- Badges
- Home /
Question by
Mukeshhari · May 19, 2018 at 06:05 AM ·
android builderror-building-playerbuildplayer
,
unity.jpg
(77.7 kB)
Comment
0
Show 1
10 |3000 characters needed characters left characters exceeded
▼
- Viewable by all users
- Viewable by moderators
- Viewable by moderators and the original poster
- Advanced visibility
Viewable by all users
fafase
· May 19, 2018 at 06:12 AM
0
Share
You need to do what the console says. Either your device is not connected, your device is not in developer mode, does not have usb enabled and so on.
1 Reply
- Sort:
Answer by madhav-aspiration · May 19, 2018 at 06:21 AM
you just «build» android apk not «build and run» and after move in android device and install
Comment
0
·
Share
10 |3000 characters needed characters left characters exceeded
▼
- Viewable by all users
- Viewable by moderators
- Viewable by moderators and the original poster
- Advanced visibility
Viewable by all users
Unity Answers is in Read-Only mode
Unity Answers content will be migrated to a new Community platform and we are aiming to launch a public beta on June 13. Please note, Unity Answers is now in read-only so we can prepare for the final data migration.
For more information and updates, please read our full announcement thread in the Unity Forum.
Follow this Question
Answers Answers and Comments
101 People are following this question.
Related Questions
I am getting a Gradle build error while building a game App bundle made with Unity 3D 2019.2. , 0 Answers
i can’t build my android game 1 Answer
Build failed with errors. at UnityEditor.BuildPlayer+Default buildMethods how to resolve it ? 39 Answers
No Android device connected 0 Answers
Command-line build for Android strips out used assets like png 2 Answers
Delivering to Google Play
While developing for Android using Unity, you could encounter a number of issues. Problems are often related to plug-insA set of code created outside of Unity that creates functionality in Unity. There are two kinds of plug-ins you can use in Unity: Managed plug-ins (managed .NET assemblies created with tools like Visual Studio) and Native plug-ins (platform-specific native code libraries). More info
See in Glossary or incorrect Project settingsA broad collection of settings which allow you to configure how Physics, Audio, Networking, Graphics, Input and many other areas of your project behave. More info
See in Glossary. This section outlines the most common scenarios and relavant troubleshooting advice.
Your application crashes immediately after launch
-
Remove any native plug-insA platform-specific native code library that is created outside of Unity for use in Unity. Allows you can access features like OS calls and third-party code libraries that would otherwise not be available to Unity. More info
See in Glossary you have. -
Disable stripping.
-
Use
adb logcat
to get the crash report from your device. Consult the official Android Developer Logcat Command-Line Tool documentation for more information.
The game crashes after a couple of seconds when playing video
Ensure Settings > Developer Options > Don’t keep activities isn’t enabled on the device.
The video player is its own activity, and therefore regular game activity will be destroyed if the video player is activated.
No Android device found
If Unity cannot find an Android device connected to the system, check the following:
-
Make sure that your device is actually connected to your computer — check the USB cable and the sockets.
-
Make sure that your device has USB Debugging enabled in the Developer options. For more details, refer to the Android SDK/NDK Setup page.
-
Run the
adb devices
command from theplatform-tools
directory of your Android SDK installation and check the output.-
If the output list is empty and you are using Windows, you may need to install the driver for ADBAn Android Debug Bridge (ADB). You can use an ADB to deploy an Android package (APK) manually after building. More info
See in Glossary devices. For more details, refer to the Android SDK/NDK Setup documentation. -
If the list contains entries with the unauthorized label, you may need to authorize your computer on your device and give it permission to debug it. Check the device’s screen for the corresponding dialog.
-
If the list contains your device with the device label, build your Project in Unity again.
-
Failed to re-package resources
This error occurs when the Android Asset Packaging Tool (AAPT) fails. AAPT is used to build the intermediate Asset packagesA collection of files and data from Unity projects, or elements of projects, which are compressed and stored in one file, similar to Zip files, with the .unitypackage
extension. Asset packages are a handy way of sharing and re-using Unity projects and collections of assets. More info
See in Glossary during Android build. This issue is most often caused by missing resources or duplicate resources in your Android plug-ins.
Check the console message for more details — it should contain the IDs of the resources that are missing or duplicates. Fix the error in your plug-ins by either adding the missing resources/settings or removing the duplicate plug-ins.
Unable to merge Android App Manifests
The most likely cause for this issue is that one of your plug-ins has a manifest that is incompatible with the main Unity manifest.
Check the console message for more details on which attributes are conflicting, and fix the manifests accordingly.
See the Android App Manifest documentation for more details on Android App Manifests.
Unable to convert classes into DEX format
The most likely cause for this issue is that you have a Java plug-in added twice. This results in duplicate classes when Unity tries to build a DEX (Dalvik Executable Format) file from all the compiled Java plug-ins. Check the console output for the list of duplicate entries, and fix the plug-ins.
If your console messages says “Too many references”, it means that the number of fields and methods exceeded the DEX limit of 64k. This usually happens when the number of plug-ins or plug-in resources is too high. Due to the way the references are generated, the limit could be hit with just a couple of large plug-ins.
There are several ways to handle this issue. One of these is by stripping the plug-ins. However, the quickest way to fix it is to switch to the Gradle build system, or export the Project and build it in Android Studio.
Unable to install APK to device
This error can be caused by:
-
Installing to an incompatible device.
-
Installing to a device running a version of Android lower than the Minimum API Level in your Player settings.
Check the console for the actual error code and output.
-
2017–05–25 Page published
-
Updated functionality in 5.5
Delivering to Google Play
Проблемы с архитектурой игры и Гугл Плей.
Проблемы с архитектурой игры и Гугл Плей.
Доброго дня!
Может кто сталкивался с такой проблемой.
Сделал игру на андроид в Unity версия 2021 года, при создании app bondle для гуг плей выбрал две галочки для архитектуры 32 и 64 бит. Загрузил. В аккаунте разработчика видно, что набор содержит оба варианта архитектуры.
При скачивании для тестирования у меня на телефон (Honor50 Lite и Sumsung А32) игра запускается, но через короткое время начинает глючить и становится неиграбельной. Как будто скачивает 64 битную версию игры, вместо 32 битной.
Когда инсталлирую 32 битную игру из apk — все ок, при скачивании — глючит, как-будто скачивает 64 битную версию.
Почему такое может происходить?
Может есть какие-то настройки для установления приоритета архитектуры?
- Dekris13
- UNец
- Сообщения: 15
- Зарегистрирован: 30 май 2022, 22:09
Re: Проблемы с архитектурой игры и Гугл Плей.
Question by
Mukeshhari · May 19, 2018 at 06:05 AM ·
android builderror-building-playerbuildplayer
,
unity.jpg
(77.7 kB)
Comment
0
Show 1
10 |3000 characters needed characters left characters exceeded
▼
- Viewable by all users
- Viewable by moderators
- Viewable by moderators and the original poster
- Advanced visibility
Viewable by all users
fafase
· May 19, 2018 at 06:12 AM
0
Share
You need to do what the console says. Either your device is not connected, your device is not in developer mode, does not have usb enabled and so on.
1 Reply
- Sort:
Answer by madhav-aspiration · May 19, 2018 at 06:21 AM
you just «build» android apk not «build and run» and after move in android device and install
Comment
0
·
Share
10 |3000 characters needed characters left characters exceeded
▼
- Viewable by all users
- Viewable by moderators
- Viewable by moderators and the original poster
- Advanced visibility
Viewable by all users
Unity Answers is in Read-Only mode
Unity Answers content will be migrated to a new Community platform and we are aiming to launch a public beta on June 13. Please note, Unity Answers is now in read-only so we can prepare for the final data migration.
For more information and updates, please read our full announcement thread in the Unity Forum.
Follow this Question
Answers Answers and Comments
101 People are following this question.
Related Questions
I am getting a Gradle build error while building a game App bundle made with Unity 3D 2019.2. , 0 Answers
i can’t build my android game 1 Answer
Build failed with errors. at UnityEditor.BuildPlayer+Default buildMethods how to resolve it ? 39 Answers
No Android device connected 0 Answers
Command-line build for Android strips out used assets like png 2 Answers