Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem building Rosetta Drone on Android Studio #172

Closed
davidan208 opened this issue Aug 3, 2023 · 18 comments
Closed

Problem building Rosetta Drone on Android Studio #172

davidan208 opened this issue Aug 3, 2023 · 18 comments

Comments

@davidan208
Copy link

Hi guys,
I'm following the setup instruction to build the rosetta drone for my DJI. I have initialized with git lfs install, generated key for Google Map API and DJI App and put it in the desired locations. But when I built on Android Studio 3.6.4 ( Gradle version 6.8.3), I encountered this
image
Can any one give me a guide to overcome this problem, thanks a lot.

@kripper
Copy link
Collaborator

kripper commented Aug 3, 2023

Did you import the project using File->New->Import Project ?

@davidan208
Copy link
Author

Hi @kripper
Yes I have. I''ve tried many times but it ends up the same.

Did you import the project using File->New->Import Project ?

@kripper
Copy link
Collaborator

kripper commented Aug 3, 2023

Maybe something changed in the cloud.
Please send a PR if you find the problem.

@davidan208
Copy link
Author

Maybe something changed in the cloud. Please send a PR if you find the problem.

Thank you @kripper.
One question, when I install Android Studio, are there anything I should consider, or just doing as the recommend settings; and then just import this repository and build the apk without any additional steps (beside adding the keys.xml)

@kripper
Copy link
Collaborator

kripper commented Aug 3, 2023

No. I believe the correct grade version is automatically downloaded and installed when you import and build the project.

@davidan208
Copy link
Author

No. I believe the correct grade version is automatically downloaded and installed when you import and build the project.

This is the most recent problem since I'm starting over again @kripper.
image

Any change I should change other version of Android studio ? I'm very new so I don't do java pretty much.
Thank you

@jashshah999
Copy link

Hi. Yes you can change your Android SDK Version. Go to File > Project Structure and under this you should see Android SDK Version which must be set to 17.x for you now. Click on the drop down and change it to 15. Then build the APK and you should be good to go!

@davidan208
Copy link
Author

davidan208 commented Aug 11, 2023

@jashshah999 you're a life saver. Thanks a lot my brother

@kripper
Copy link
Collaborator

kripper commented Aug 11, 2023

Did something change and should we update the README build instructions?

kripper added a commit that referenced this issue Aug 11, 2023
@estevezb
Copy link

Hi, I am having the same issue but when i go to File > Project Structure i don't know where to find the Android SDK Version.
image
image

Would it be possible to provide a screen shot of those fields and menu?

@jashshah999
Copy link

jashshah999 commented Aug 19, 2023 via email

@estevezb
Copy link

@jashshah999 . Please excuse my ignorance I am new to Android studio and Java. I clicked on the Gradle Settings link. Here is the new window. It is currently showing 17.02 which I expected based on your information. Do i download a new JDK version? You mentioned choosing 15 from this dropdown? If so, which one?, there are also multiple vendors listed but not sure that is relevant. Here is another screen shot to make sure i am on the same page:
image

@estevezb
Copy link

@jashshah999. NM. This worked!!! Thank you!!!

@estevezb
Copy link

FYI, to the team, Readme could include , the specific vendor needed is azul 15 Azul Zulu :
image

@broccan
Copy link

broccan commented Jun 4, 2024

The position of gradle settings have now changed and can't access it via the SDK structure menu, instead you can find it using the following:
image

image

@CAMIprojectsUNI
Copy link

I have encountered the same errors as previous users. I followed their steps and their help was useful up to a certain point... but I get this error when trying to Build->Make Project.
general_problem

@angel-ayala
Copy link
Contributor

angel-ayala commented Sep 5, 2024

Apparently seems to be a version problem with a dependency from Mapbox v9 which by the way is not supported anymore., I don't know exactly if is still being served since it continues appearing in maven's repo

UPDATE:
There is actually no file at https://repo1.maven.org/maven2/com/mapbox/mapboxsdk/mapbox-android-accounts/0.7.0/

@HEEJUN-SHIN
Copy link

Hello, @angel-ayala @CAMIprojectsUNI, the problem comes from DJI UXSDK 4:16 and
I found temporal solution from DJI Developer support.

https://sdk-forum.dji.net/hc/en-us/articles/37229365477657-During-the-compilation-of-the-MSDK-V5-example-where-it-stated-Could-not-find-com-mapbox-mapboxsdk-mapbox-android-accounts-0-7-0-How-should-address-this

you can add

 maven { url 'https://maven.aliyun.com/repository/public' }
 maven { url 'https://maven.aliyun.com/repository/google' }
 maven { url 'https://repo.huaweicloud.com/repository/maven'}

inside allprojects/repositories in project-level build.gradle.

kripper added a commit that referenced this issue Oct 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants