I am using android studio with the Epson Wikitude Sdk. When I run the app, it gives me an error saying there are duplicate files.I have gone through all of my files and do not see any duplicates. When I take the wikitudesdk.jar file out of libs it has duplicate dependency errors. Perhaps I have the wrong dependencies? Any help would be greatly appreciated! Thanks
ERROR:
Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'. > com.android.build.api.transform.TransformException: com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK sdk_logo-1.png File1: C:Users\myusername\AndroidStudioProjects\Test2\app\libs\wikitudesdk.jar File2: C:\Users\myusername\AndroidStudioProjects\Test2\app\libs\wikitudesdk.jar
The problem here is that you are including the wikitudesdk.jar twice.
compile fileTree(dir: 'libs', include:)
compile(name: 'wikitudesdk', ext:'jar')
If you remove one of them then this should fix your problem.
M
Mariah Billings
said
over 7 years ago
I appreciate your assistance. I removed the line "compile(name: 'wikitudesdk', ext:'jar')" and it fixed that error, but when I run the program I get the following error:
Could not identify launch activity: Default Activity not found Error while Launching activity
I have included my manifests below if that is helpful. Thanks!
<category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity><!-- ATTENTION: This was auto-generated to add Google Play services to your project for App Indexing. See https://g.co/AppIndexing/AndroidStudio for more information. --> <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" /> </application>
Mariah Billings