Importing AppRTCMobile to Android Studio

237 views
Skip to first unread message

Sumit Dubey

unread,
Feb 25, 2021, 4:01:53 AM2/25/21
to discuss-webrtc
Hi,

Is importing AppRTCMobile to Android Studio supported, as in the link:


I am getting the error:

Execution failed for task ':examples.AppRTCMobile:mergeDebugResources'.
> Could not resolve all files for configuration ':examples.AppRTCMobile:_internal_aapt2_binary'.
   > Cannot resolve external dependency com.android.tools.build:aapt2:4.1.2-6503028 because no repositories are defined.
     Required by:
         project :examples.AppRTCMobile

Possible solution:
 - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html


Thank you
Sumit


Sumit Dubey

unread,
Feb 25, 2021, 4:52:02 AM2/25/21
to discuss-webrtc
After fixing the above error, there is another error:

Entry name 'org/appspot/apprtc/R.class' collided


醉翁

unread,
Jun 1, 2021, 3:15:37 PM6/1/21
to discuss-webrtc
Hi Sum it Dubey.
About second issue.
You need delete out/Debug(attempt you use defaut setting) all  R.java file.Because these R.java collied Android studio Project Generate R.java.
Run follow command or same feature command.
find . -type f -name "R.java" | xargs rm -rf

Good lucky~
Reply all
Reply to author
Forward
0 new messages