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
Fix: Configuration with name 'default' not found. (android) #227
Comments
Thanks! @kevinvangelder - please note the above for when RNMaps and 0.29 come to play, we should take this into account. |
FWIW, I also had to change this bit in MainActivity.java:
|
@GantMan , I followed the above steps but I am still getting the below errors during build, E:\react\MyBeta\android\app\src\main\java\com\mybeta\MainApplication.java:6: error: cannot find symbol FAILURE: Build failed with an exception. |
Until
|
Sorry for the early merge @sudharsan1988 We get excited sometimes. |
I have the same problem as @sudharsan1988, but working though the steps provided by @skellock didnt solve it, back to same issue. The step I couldn't do is this one :
In the base app made by |
@koustuvsinha sounds like |
@skellock yes exactly the same error output on :app:compileDebugJavaWithJavac
/home/koustuv/Projects/react-native-apps/PeopleManager/android/app/src/main/java/com/peoplemanager/MainApplication.java:6: error: cannot find symbol
import com.facebook.react.ReactApplication;
^
symbol: class ReactApplication
location: package com.facebook.react
/home/koustuv/Projects/react-native-apps/PeopleManager/android/app/src/main/java/com/peoplemanager/MainApplication.java:8: error: cannot find symbol
import com.facebook.react.ReactNativeHost;
^
symbol: class ReactNativeHost
location: package com.facebook.react
/home/koustuv/Projects/react-native-apps/PeopleManager/android/app/src/main/java/com/peoplemanager/MainApplication.java:15: error: cannot find symbol
public class MainApplication extends Application implements ReactApplication {
^
symbol: class ReactApplication
/home/koustuv/Projects/react-native-apps/PeopleManager/android/app/src/main/java/com/peoplemanager/MainApplication.java:17: error: cannot find symbol
private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
^
symbol: class ReactNativeHost
location: class MainApplication
/home/koustuv/Projects/react-native-apps/PeopleManager/android/app/src/main/java/com/peoplemanager/MainApplication.java:32: error: cannot find symbol
public ReactNativeHost getReactNativeHost() {
^
symbol: class ReactNativeHost
location: class MainApplication
/home/koustuv/Projects/react-native-apps/PeopleManager/android/app/src/main/java/com/peoplemanager/MainActivity.java:10: error: MainActivity is not abstract and does not override abstract method getPackages() in ReactActivity
public class MainActivity extends ReactActivity {
^
/home/koustuv/Projects/react-native-apps/PeopleManager/android/app/src/main/java/com/peoplemanager/MainApplication.java:17: error: cannot find symbol
private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
^
symbol: class ReactNativeHost
location: class MainApplication
/home/koustuv/Projects/react-native-apps/PeopleManager/android/app/src/main/java/com/peoplemanager/MainApplication.java:31: error: method does not override or implement a method from a supertype
@Override
^
8 errors
:app:compileDebugJavaWithJavac FAILED Even after rnpm is linked : react-native link react-native-maps
rnpm-link info Android module react-native-maps is already linked
rnpm-link info iOS module react-native-maps is already linked |
I got this working with the following configuration:
MainActivity.java @android/app/src/main/java/com/projectName/MainActivity.java |
Thanks for the info 👍 |
@darron-haworth Where do you get the MainActivity.xml in the project? |
This is what's new in 0.29. |
We're tracking this here. Trying to get more info. |
@koustuvsinha , I updated my comment with the paths. (it was a .java file, not a .xml file on the MainActivity) - Hope it helps |
I too am experiencing the same issues as @koustuvsinha - once I apply the fix by @skellock I am able to progress past the missing configuration issue on React 0.28, but then immediately hit the same wall of missing symbol errors. I am able to run a raw react-native (0.28) project on Android, however. |
The problem we're having here is when ignite calls We've got another issue filed to "control" what Should be coming today. |
Fixed as of 1.2.1, sorry for the issue. |
maybe this error from rnpm link (react-native-maps);
new version of ignite-generator includes map example;
if you get error (Gradle sync failed: Configuration with name 'default' not found.) after run "react-native run-androud"
try change Manually in './android/app/build.gradle'
dependencies {
//compile project(':react-native-maps') //rnpm link error
compile 'com.airbnb.android:react-native-maps:0.6.0'
}
The text was updated successfully, but these errors were encountered: