My project is dependency on Module A & B
And Module A is dependent on Module B
After I setup the dependencies, Multiple dex exception is encountered.
FYI
My project is doing native + Cordova WebView
and I try to accelerate by Ludei WebView+ for the low end model
https://github.com/ludei/webview-plus
My project dependent on Cordova module & Ludei WebView+ module
Cordova module dependent on Ludei WebView+ module
After these setting I can successfully build by grade with no warning, but I do not pass dexDebug when I want to build application.
I got this error
com.android.dex.DexException: Multiple dex files define Lcom/ludei/chromium/BuildConfig;
I know it is officially recommended to build on ANT, I have did some trick I change the webview+ package name I can build the "debug" application but not in "release".
How can I set it properly in android studio to build it by gradle without having multiple dex exception?
---------UPDATE -------------
#Scott Barta Yes, here is whole cordova project under [project]/platforms/android.
The Whole project files. module: CordovaLib,webviewplus
https://github.com/gaplo917/cordova-cocoonjs-gradle
I can build a debug with cocoonjs by changing the package name to another name,i.e. package="com.ludei.android.chromium" but with no luck on building a release version.
https://github.com/gaplo917/cordova-cocoonjs-gradle/blob/master/webviewplus/src/main/AndroidManifest.xml
if cocoonjs is not run properly, the application can still be built but when you request a cordova web view , it will crash!
Related
I tried creating a module in Android Studio. The module appears in my project structure but not the sidebar. Its dependencies aren't showing up under gradle scripts and I'm getting an error message saying that gradle sync failed.
I tried creating a module named MeepMeepTesting in Android Studio using New --> Module --> Java or Kotlin Library. I gave the library and class the same name. The module shows up in my Project Structure, but not in the sidebar, and I also cannot find its build.gradle under Gradle Scripts. This is the error I get when I tried creating the module: Gradle project sync failed. Basic functionality (e.g. editing, debugging) will not work properly. In my build window, I'm getting the message "null"
I updated my gradle and made sure I'm not in offline mode.
I'm unsure why this is happening, as I have already completed this process twice successfully.
While running the React Native Android app, then building the project the following error is shown:
Could not determine the dependencies of task ':app:installDebug'.
Go to android folder in your project and then type
gradlew clean for Windows and
./gradlew clean for Mac and Linux. I use this method every time I encounter the same problem, and also when changing the package.json (add / remove library)
Please remove build folder in /android/app and run build command again.
It worked for me.
I just installed Android Studio 3.1.4 on Windows 10, and upon creating an empty test project, and building it, I'm getting the error:
Cannot find JAR 'aws-java-sdk-kms-1.11.6.jar' required by module 'gradle-resources-s3' using classpath or distribution directory
It is referencing gradle 4.4 in my documents\.gradle folder. Anyone has any idea how to go about this problem?
This turned out to be a blockage for an internet security suite. The suite scans all incoming jar dependencies while they are extracted from the global gradle zip file. For some reason, a select few packages are flagged, and thus gradle syncing fails.
I have modified library project of finestwebview here
I tried to add this library project in to my android studio's project but I got several errors saying configuration with name 'default' not found android studio.need help. I wasted my 1 whole days trying this but unable to add.
what I tried is
I copied the library project into the libs folder of my root project,and added 'include:libs:finestwebview' in setting.gradle file.
Also going to
file->project structure->app->dependencies
added the module and sync the project but cannot achieve the desired outcome.
You are including a project, so for that you should add it as a module, and say compile project in your app's gradle dependencies to use it in your app module.
go to
File->New->Import module and add your library project folder
you will have to name your library project there
then you need to say
`compile project(':yourlibraryProjectname')`
in your gradle dependency
Hi in my project Iam using
compile 'com.android.support:support-v4:22.2.0'
for support library I don't want to use appcompat-v7 and mediarouter but they are getting generated under /exploded-aar/com.android.support.
My project was originally made for Ant build system and after I imported it in Android Studio it's been built for Gradle and it was working till I updated SDK (by mistake) and now I can't build project because of conflicts.
I tried to remove it from app.iml
<orderEntry type="library" exported="" name="appcompat-v7-22.2.0" level="project" />
But after I clean and rebuild project it's back again