English 中文(简体)
D/ProfileInstaller (14242): com.example. instagram_ clone 的安装配置文件
原标题:D/ProfileInstaller(14242): Installing profile for com.example.instagram_clone
I am getting this error after completing the app instagram clone. I haven t run the app for a while so when I came back running the app it is giving me this error does anyone know the solution? The error: I/instagram_clon(14242): Compiler allocated 5171KB to compile void android.view.ViewRootImpl.performTraversals() D/ProfileInstaller(14242): Installing profile for com.example.instagram_clone And I am running on the real device, and I am seeing a black screen with this error in the terminal. What should I do? Here is the screenshot:
问题回答
I was facing this issue when my emulator did not have an active internet connection. Make sure your emulator/phone and laptop are connected to internet. (My app was using Supabase) Also verify if you app makes API calls to unreachable endpoints if you are connected to internet.
I know you asked this question a year ago, but I just had a similar issue just minutes ago. And it appears to be reproducible. Android Studio hangs at "Installing profile for com.companyname.appname" whenever I hit "Run" After a closer look, I realized I made a silly mistake: I had mistakenly used the arrow syntax after runApp in the main function. So, instead of: void main() { runApp(MainPage()); } I did this: void main() { runApp() => MainPage(); } runApp is a function that takes a Widget as a parameter, and it doesn t return a value. The arrow syntax expands the code to runApp() { return MainPage(); } which doesn t make sense. However, Android Studio didn t give me an error. It just hangs when I run my code. Android Studio Koala 2024.1.1 Patch 1, Flutter 3.24.0, Dart 3.5.0
I understand the issue you re facing, and there are several potential solutions you can try to resolve it. Run flutter clean in your terminal to clean the build artifacts and start with a fresh build. If the problem persists, consider making a fresh copy of your Android folder, as this can sometimes resolve persistent issues. However, if the error still persists after trying the above steps, it s possible that the hang-up is related to the initialization of external services like Firebase, AWS, or other APIs. Specifically, if you have used an await statement during the initialization process, it might lead to a long wait during profile initialization. To address this, locate the main function in your code, and if you find an await statement for initializing Firebase or any other cloud resources, remove it. The proper way to set up SDKs for cloud resources is through their respective initialization methods without using await during app initialization For example, instead of this: await Firebase.initializeApp(); // REMOVE THIS LINE Do This void main() { WidgetsFlutterBinding.ensureInitialized(); Firebase.initializeApp(); // Proper initialization without await runApp(const MyApp()); }
more like you copy and pasted the code lol, changing the api key may work OR remove the following lines of code from main.dart, before first run of your app (if using firebase), you may keep the main function async: WidgetsFlutterBinding.ensureInitialized(); await Firebase.initializeApp(options: DefaultFirebaseOptions.currentPlatform); you can add it later once the app is configured on the first run. funny how you built the app by yourself but are not aware of this little fix which everybody learns from a bit of hit and trial




相关问题
Android - ListView fling gesture triggers context menu

I m relatively new to Android development. I m developing an app with a ListView. I ve followed the info in #1338475 and have my app recognizing the fling gesture, but after the gesture is complete, ...

AsyncTask and error handling on Android

I m converting my code from using Handler to AsyncTask. The latter is great at what it does - asynchronous updates and handling of results in the main UI thread. What s unclear to me is how to handle ...

Android intent filter for a particular file extension?

I want to be able to download a file with a particular extension from the net, and have it passed to my application to deal with it, but I haven t been able to figure out the intent filter. The ...

Android & Web: What is the equivalent style for the web?

I am quite impressed by the workflow I follow when developing Android applications: Define a layout in an xml file and then write all the code in a code-behind style. Is there an equivalent style for ...

TiledLayer equivalent in Android [duplicate]

To draw landscapes, backgrounds with patterns etc, we used TiledLayer in J2ME. Is there an android counterpart for that. Does android provide an option to set such tiled patterns in the layout XML?

Using Repo with Msysgit

When following the Android Open Source Project instructions on installing repo for use with Git, after running the repo init command, I run into this error: /c/Users/Andrew Rabon/bin/repo: line ...

Android "single top" launch mode and onNewIntent method

I read in the Android documentation that by setting my Activity s launchMode property to singleTop OR by adding the FLAG_ACTIVITY_SINGLE_TOP flag to my Intent, that calling startActivity(intent) would ...

From Web Development to Android Development

I have pretty good skills in PHP , Mysql and Javascript for a junior developer. If I wanted to try my hand as Android Development do you think I might find it tough ? Also what new languages would I ...

热门标签