You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What went wrong:
Could not determine the dependencies of task ':app:preDebugBuild'.
Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.
Could not resolve project :react-native-telephony.
Required by:
project :app
Unable to find a matching configuration of project :react-native-telephony:
- None of the consumable configurations have attributes.
I tried to link with
npm link react-native-telephony
I updtated settings.gradle file:
rootProject.name = 'app'
include ':react-native-telephony'
project(':react-native-telephony').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-telephony/android')
apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings)
include ':app
I updtated build.gradle file:
implementation project(':react-native-telephony')
And MainApplication.java :
import com.telephony.TelephonyPackage;
...
@Override
protected List<ReactPackage> getPackages() {
@SuppressWarnings("UnnecessaryLocalVariable")
List<ReactPackage> packages = new PackageList(this).getPackages();
// Packages that cannot be autolinked yet can be added manually here, for example:
// packages.add(new MyReactNativePackage());
packages.add(new TelephonyPackage());
return packages;
}
What can I try ? Is this a problem someone already faced ?
The text was updated successfully, but these errors were encountered:
What went wrong:
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
Could not resolve all task dependencies for configuration ':app:debugCompileClasspath'.
Could not resolve project :react-native-telephony.
Required by:
project :app
> Unable to find a matching configuration of project :react-native-telephony:
- None of the consumable configurations have attributes.
I know it's an old thread but to help ppl who are stuck with this:
In android/settings.gradle I added
include ':react-native-telephony' project(':react-native-telephony').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-telephony/android/app')
right before
include ':app'
at the end of the file. That fixed the problem for me.
Hi !
I just installed the lib using:
npm install --save react-native-telephony
Then I tried to build my app:
npm run android
And I get this error :
I tried to link with
npm link react-native-telephony
I updtated settings.gradle file:
I updtated build.gradle file:
implementation project(':react-native-telephony')
And MainApplication.java :
What can I try ? Is this a problem someone already faced ?
The text was updated successfully, but these errors were encountered: